Skip to content

Commit 7a3334b

Browse files
committed
runner.os was inconsistent with multiple conditions?
1 parent 5178e0b commit 7a3334b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/phantoms.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v2
3737

3838
- name: Cache Node Posix
39-
if: runner.os != 'Windows' && !env.ACT
39+
if: ${{ matrix.os != 'windows-latest' }} && ${{ !env.ACT }}
4040
uses: actions/cache@v4
4141
with:
4242
path: ~/.npm
@@ -64,11 +64,11 @@ jobs:
6464
pypet2bids/pyproject.toml
6565
6666
- name: Install UV (Linux/macOS)
67-
if: runner.os != 'Windows'
67+
if: ${{ matrix.os != 'windows-latest' }}
6868
run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
6969

7070
- name: Install UV (Windows)
71-
if: runner.os == 'Windows'
71+
if: ${{ matrix.os == 'windows-latest' }}
7272
run: |
7373
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
7474
echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
@@ -92,19 +92,19 @@ jobs:
9292
run: npm install -g [email protected]
9393

9494
- name: Collect Phantoms (Linux/macOS)
95-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os != 'Windows'
95+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && ${{ matrix.os != 'windows-latest' }}
9696
run: wget -O PHANTOMS.zip https://openneuropet.s3.amazonaws.com/US-sourced-OpenNeuroPET-Phantoms.zip
9797

9898
- name: Collect Phantoms (Windows)
99-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os == 'Windows'
99+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && ${{ matrix.os == 'windows-latest' }}
100100
run: Invoke-WebRequest -Uri "https://openneuropet.s3.amazonaws.com/US-sourced-OpenNeuroPET-Phantoms.zip" -OutFile "PHANTOMS.zip"
101101

102102
- name: Decompress phantoms windows
103-
if: steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner.os == 'Windows'
103+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && ${{ matrix.os == 'windows-latest' }}
104104
run: powershell -command "Expand-Archive PHANTOMS.zip"
105105

106106
- name: Decompress phantoms posix
107-
if: steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner.os != 'Windows'
107+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && ${{ matrix.os != 'windows-latest' }}
108108
run: unzip PHANTOMS.zip
109109

110110
- name: Copy Conversion Scripts from Version Control

0 commit comments

Comments
 (0)