Skip to content

Commit 339a51f

Browse files
committed
update workflow file
1 parent b6c8661 commit 339a51f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/phantoms.yaml

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

3838
- name: Cache Node Posix
39-
if: runner.os != 'Windows' && !env.ACT
39+
if: runner.os != 'Windows'
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 }}
4746
id: phantom-cache
4847
uses: actions/cache@v4
4948
env:
@@ -89,19 +88,19 @@ jobs:
8988
run: npm install -g [email protected]
9089

9190
- name: Collect Phantoms (Linux/macOS)
92-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os != 'Windows'
91+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' && runner.os != 'Windows' }}
9392
run: wget -O PHANTOMS.zip https://openneuropet.s3.amazonaws.com/US-sourced-OpenNeuroPET-Phantoms.zip
9493

9594
- name: Collect Phantoms (Windows)
96-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os == 'Windows'
95+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' && runner.os == 'Windows' }}
9796
run: Invoke-WebRequest -Uri "https://openneuropet.s3.amazonaws.com/US-sourced-OpenNeuroPET-Phantoms.zip" -OutFile "PHANTOMS.zip"
9897

9998
- name: Decompress phantoms windows
100-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os == 'Windows'
99+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' && runner.os == 'Windows' }}
101100
run: powershell -command "Expand-Archive PHANTOMS.zip"
102101

103102
- name: Decompress phantoms posix
104-
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' }} && ${{ !env.ACT }} && runner.os != 'Windows'
103+
if: ${{ steps.cache-phantoms.outputs.cache-hit != 'true' && runner.os != 'Windows' }}
105104
run: unzip PHANTOMS.zip
106105

107106
- name: Copy Conversion Scripts from Version Control

0 commit comments

Comments
 (0)