Skip to content

Commit

Permalink
Try adding outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
etpeterson committed Dec 12, 2023
1 parent 2428908 commit 87f468b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,29 @@ on:
- 'analysis/**'

jobs:
read_algorithms:
algorithms:
runs-on: ubuntu-latest
outputs: # here we use the outputs from steps, and set outputs for the job `configure`
config: ${{ steps.algorithms.outputs.config }}
steps:
- uses: actions/checkout@v3
- name: Read algorithms
id: read_algorithms
id: algorithms
run: |
echo "algorithms<<EOF" >> $GITHUB_OUTPUT
cat tests/IVIMmodels/unit_tests/algorithms.json >> $GITHUB_OUTPUT
cat ./tests/IVIMmodels/unit_tests/algorithms.json >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Log algorithms
run: echo "${{fromJson(steps.algorithms.outputs.config)}}"

build:
runs-on: ubuntu-latest
needs: read_algorithms
needs: algorithms
continue-on-error: false
strategy:
fail-fast: false
matrix:
algorithm: ${{ fromJson(needs.read_algorithms.outputs.algorithms).algorithms }}
algorithm: ${{fromJson(needs.algorithms.outputs.algorithms).algorithms}}
SNR: [10, 30, 50, 100, 200]
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 87f468b

Please sign in to comment.