Skip to content

Commit

Permalink
chore(ci): prevent duplicate ci triggers
Browse files Browse the repository at this point in the history
Triggering on all 'push' and 'pull_request' events will result in
duplicated CI runs in PRs (due to both conditions being met).

Instead, trigger only on pushes to `master`, or updates to PRs
targetting `master`.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Jan 9, 2025
1 parent cfd3171 commit 163699f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

permissions:
Expand Down

0 comments on commit 163699f

Please sign in to comment.