From d38ea666b8c5584da7efeaf4c3c1269e78a1f596 Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Mon, 4 Jan 2021 19:37:34 -0700 Subject: [PATCH] Only run CI workflow on push to main The pull request event should handle running it on other branches, assuming that they're at least submitted as draft PRs. Right now this is running twice on PR branches which is unnecessary. --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 655442c..4a078ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,11 @@ name: CI -on: [push, pull_request] + +on: + push: + branches: + - main + pull_request: + jobs: test: runs-on: macOS-11.0