From 4a012c7cae6d7f96a1e59cc487f6677ead6ddba0 Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Mon, 15 May 2023 17:19:38 +0100 Subject: [PATCH] CI: don't run this workflow twice on a PR If a maintainer pushes to a PR, the workflow push and pull_request events both trigger. Limit the workflow to the main branch, explicitly. --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1205f21..04bc40b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,12 @@ name: ci -on: [ push, pull_request ] +on: + push: + branches: + - main + pull_request: + branches: + - main + jobs: ci: strategy: