From 87f468b199c5ca8e84f4093e3764eae17209b3de Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Mon, 11 Dec 2023 22:17:06 -0800 Subject: [PATCH] Try adding outputs --- .github/workflows/analysis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 3ac35c7..2fe7ea9 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -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<> $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