Skip to content

Commit

Permalink
Avoid running the workflow twice on PR pushes
Browse files Browse the repository at this point in the history
When someone force-pushes to a PR or adds a new commit, the workflow would run
_twice_, as both `push` and `pull_request` events would trigger.

The default for `types` is `[opened, reopened, synchronize]`; the latter is the
type that overlaps with `push`.
  • Loading branch information
mjpieters committed Mar 28, 2022
1 parent 42a5e2a commit c5de2b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -10,6 +10,7 @@ on:
branches:
- master
- ?.?*
types: [opened, reopened]
schedule:
- cron: '0 6 * * *' # Daily 6AM UTC build

Expand Down

0 comments on commit c5de2b3

Please sign in to comment.