Skip to content

Commit

Permalink
Avoid error when matrix is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Aug 8, 2024
1 parent 90d2741 commit a2a1539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.change-list.outputs.all_changed_files }}
any_changed: ${{ steps.change-list.outputs.any_changed }}

steps:
- name: checkout code
Expand All @@ -28,6 +29,7 @@ jobs:
build-images:
name: Image builder
needs: image-list
if: ${{ needs.image-list.outputs.any_changed }}
runs-on: ubuntu-latest
strategy:
# just run one build at a time
Expand Down

0 comments on commit a2a1539

Please sign in to comment.