Skip to content

Commit

Permalink
ci: skip build job if nothing needs to be rebuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jan 24, 2024
1 parent c58a94f commit 32670a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
needs: build-plan
name: Build
runs-on: ubuntu-latest
# Matrix can't be empty, so skip the job entirely if nothing to be rebuilt.
if: fromJSON(needs.build-plan.outputs.attrs)[0] != null
strategy:
matrix:
attr: ${{fromJSON(needs.build-plan.outputs.attrs)}}
Expand Down

0 comments on commit 32670a2

Please sign in to comment.