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 af7e785 commit 3bed0e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Audit
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: 0 0 * * 4 # Midnight Wednesday

Expand Down
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:

jobs:
Expand Down

0 comments on commit 3bed0e5

Please sign in to comment.