Skip to content

Commit

Permalink
ci: Only run build checks and upload if rockspecs changed
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 31, 2021
1 parent 0b94607 commit d73953b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

build:
needs: affected
if: ${{ needs.affected.outputs.rockspecs }}
strategy:
fail-fast: false
matrix:
Expand All @@ -47,7 +48,8 @@ jobs:
luarocks --lua-version ${{ matrix.luaVersion }} --local build -- ${{ matrix.rockspec }}
upload:
needs: build
needs: [affected, build]
if: ${{ needs.affected.outputs.rockspecs }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit d73953b

Please sign in to comment.