@@ -36,14 +36,14 @@ jobs:
3636 uses : actions/checkout@v2
3737
3838 - name : Cache Node Posix
39- if : ${{ matrix .os != 'windows-latest' }} && ${{ !env.ACT }}
39+ if : runner .os != 'Windows' && !env.ACT
4040 uses : actions/cache@v4
4141 with :
4242 path : ~/.npm
4343 key : npm-${{ runner.os }}-${{ env.cache-name }}
4444
4545 - name : Cache Phantoms
46- if : ${{ !env.ACT }}
46+ if : !env.ACT
4747 id : phantom-cache
4848 uses : actions/cache@v4
4949 env :
@@ -64,11 +64,11 @@ jobs:
6464 pypet2bids/pyproject.toml
6565
6666 - name : Install UV (Linux/macOS)
67- if : ${{ matrix .os != 'windows-latest' }}
67+ if : runner .os != 'Windows'
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 : ${{ matrix .os == 'windows-latest' }}
71+ if : runner .os == 'Windows'
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 }} && ${{ matrix .os != 'windows-latest' }}
95+ if : steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner .os != 'Windows'
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 }} && ${{ matrix .os == 'windows-latest' }}
99+ if : steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner .os == 'Windows'
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 }} && ${{ matrix .os == 'windows-latest' }}
103+ if : steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner .os == 'Windows'
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 }} && ${{ matrix .os != 'windows-latest' }}
107+ if : steps.cache-phantoms.outputs.cache-hit != 'true' && !env.ACT && runner .os != 'Windows'
108108 run : unzip PHANTOMS.zip
109109
110110 - name : Copy Conversion Scripts from Version Control
@@ -115,7 +115,7 @@ jobs:
115115
116116 - name : Debug
117117 uses : mxschmitt/action-tmate@v3
118- if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
118+ if : github.event_name == 'workflow_dispatch' && inputs.debug_enabled
119119 timeout-minutes : 15
120120 with :
121121 limit-access-to-actor : true
@@ -157,7 +157,7 @@ jobs:
157157
158158 - name : Debug
159159 uses : mxschmitt/action-tmate@v3
160- if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
160+ if : github.event_name == 'workflow_dispatch' && inputs.debug_enabled
161161 timeout-minutes : 15
162162 with :
163163 limit-access-to-actor : true
0 commit comments