Skip to content

Commit

Permalink
Don't run deploy.yml twice for every PR
Browse files Browse the repository at this point in the history
This restricts CI runs on push to just the main branch, so that PRs
don't run the same workflow twice on every push.
  • Loading branch information
ddalcino committed Mar 27, 2024
1 parent 3af19ce commit 4371982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build, Test, and (maybe) Deploy React Application
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
pull_request:
workflow_dispatch:

Expand Down

0 comments on commit 4371982

Please sign in to comment.