Skip to content

Commit

Permalink
Create job matrix using JSON array output
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Oct 12, 2023
1 parent 139dc51 commit ddd091a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rebuild-changed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ jobs:
name: Wait for rebuild to complete and report status
needs: trigger-rebuild-for-modified
runs-on: ubuntu-latest
strategy:
matrix:
build_id: ${{ fromJson(needs.trigger-rebuild-for-modified.outputs.builds) }}
steps:
- name: Install dependencies
run: sudo apt-get install -y jq

- name: Show build IDs
run: echo "${{ needs.trigger-rebuild-for-modified.outputs.builds }}"
- name: Show build ID
run: echo "${{ matrix.build_id }}"

0 comments on commit ddd091a

Please sign in to comment.