Skip to content

Commit 31fa857

Browse files
committed
Try adding outputs
1 parent 37bdbe4 commit 31fa857

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/analysis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,29 @@ on:
77
- 'analysis/**'
88

99
jobs:
10-
read_algorithms:
10+
algorithms:
1111
runs-on: ubuntu-latest
12+
outputs: # here we use the outputs from steps, and set outputs for the job `configure`
13+
config: ${{ steps.algorithms.outputs.config }}
1214
steps:
1315
- uses: actions/checkout@v3
1416
- name: Read algorithms
15-
id: read_algorithms
17+
id: algorithms
1618
run: |
1719
echo "algorithms<<EOF" >> $GITHUB_OUTPUT
18-
cat tests/IVIMmodels/unit_tests/algorithms.json >> $GITHUB_OUTPUT
20+
cat ./tests/IVIMmodels/unit_tests/algorithms.json >> $GITHUB_OUTPUT
1921
echo "EOF" >> $GITHUB_OUTPUT
22+
- name: Log algorithms
23+
run: echo "${{fromJson(steps.algorithms.outputs.config)}}"
2024

2125
build:
2226
runs-on: ubuntu-latest
23-
needs: read_algorithms
27+
needs: algorithms
2428
continue-on-error: false
2529
strategy:
2630
fail-fast: false
2731
matrix:
28-
algorithm: ${{ fromJson(needs.read_algorithms.outputs.algorithms).algorithms }}
32+
algorithm: ${{fromJson(needs.algorithms.outputs.algorithms).algorithms}}
2933
SNR: [10, 30, 50, 100, 200]
3034
steps:
3135
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)