From 5c883218ad995bd7899489c97c51bcf0a063029d Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Thu, 9 Jan 2025 11:08:10 +1100 Subject: [PATCH] chore(ci): prevent duplicate ci triggers 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 --- .github/workflows/build-and-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 357508b..8561725 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,8 +2,11 @@ name: Build and test on: push: + branches: + - master pull_request: - branches: [master] + branches: + - master jobs: build-and-test-osx: