Skip to content

Commit

Permalink
fix: handle job matrix as workflow output
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-sysbio committed Mar 6, 2023
1 parent 0e238cc commit 5fa1066
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -28,7 +26,7 @@ jobs:
run: pip install -r requirements.txt

- id: set-matrix
run: echo "::set-output name=matrix::$(python -c 'import runner; runner.matrix()')"
run: echo "matrix=$(python -c 'import runner; runner.matrix()')" >> $GITHUB_OUTPUT

- name: Cache pip directory
uses: actions/cache@v3
Expand All @@ -45,7 +43,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
matrix: ${{ env.matrix }}
max-parallel: 1

steps:
Expand Down

0 comments on commit 5fa1066

Please sign in to comment.