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`.

Also removed cron job as all updates to `master` are checked anyway.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Jan 9, 2025
1 parent e005fd7 commit f13920a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Code Analysis & Test

on:
push:
branches:
- master
pull_request:
# Once on the first of the month at 06:00 UTC
schedule:
- cron: 0 6 1 * *
branches:
- master

concurrency:
group: ${{ github.ref }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/compatibility-suite.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Compatibility Suite

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

env:
PACT_DO_NOT_TRACK: true
Expand Down

0 comments on commit f13920a

Please sign in to comment.