Skip to content

Commit

Permalink
Don't attempt to publish to Pages if no change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Mar 13, 2024
1 parent 7d898f0 commit f85a90c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
merge:
runs-on: ubuntu-latest
outputs:
status: ${{ steps.commit.outputs.status }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -135,6 +137,7 @@ jobs:
yarn ts-node src/load.ts ../aggregate/rush.yaml yu-gi-oh_rush
deploy-pages:
needs: merge
if: needs.merge.outputs.status > 0 && !cancelled()
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
Expand Down

0 comments on commit f85a90c

Please sign in to comment.