Skip to content

Commit b4e1fe8

Browse files
committed
Avoid running the workflow twice on PR pushes
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`.
1 parent 42a5e2a commit b4e1fe8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
branches:
1111
- master
1212
- ?.?*
13+
types: [opened, reopened]
1314
schedule:
1415
- cron: '0 6 * * *' # Daily 6AM UTC build
1516

CHANGES/700.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated the workflow events to avoid running the workflow matrix twice.

0 commit comments

Comments
 (0)