Skip to content

Commit

Permalink
ci(gh-actions): Only include the build job if the CI matrix is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Mar 3, 2024
1 parent 0ac0606 commit c44ea56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:

build:
needs: generate-matrix
if: needs.generate-matrix.outputs.matrix != '{}' && needs.generate-matrix.outputs.matrix != '{"include":[]}'
strategy:
fail-fast: false
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
Expand Down

0 comments on commit c44ea56

Please sign in to comment.