Skip to content

Commit

Permalink
chore: only run preview on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
noahnu committed Jan 15, 2024
1 parent 148b02c commit 12d0fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
name: Preview
runs-on: ubuntu-latest
needs: [prepare]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.event_name == 'pull_request'"
permissions:
contents: read
pull-requests: write
Expand Down

0 comments on commit 12d0fdd

Please sign in to comment.