Skip to content

Commit

Permalink
Create matrix.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yohannparisiendailymotion authored Feb 24, 2024
1 parent 5d16f18 commit e6faf85
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: matrix
on: workflow_dispatch
jobs:
job1:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: echo "matrix={\"include\":[{\"project\":\"foo\",\"config\":\"Debug\"},{\"project\":\"bar\",\"config\":\"Release\"}]}" >> $GITHUB_OUTPUT
job2:
needs: job1
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJSON(needs.job1.outputs.matrix) }}
steps:
- run: build

0 comments on commit e6faf85

Please sign in to comment.