From 6c8dfece1ebdc9b8540e953436d92e43470ed6bc Mon Sep 17 00:00:00 2001 From: Raoul Wols Date: Sun, 29 Dec 2019 14:31:17 +0100 Subject: [PATCH] Enable github action on push XOR pull_request but not both Taken from https://github.community/t5/GitHub-Actions/How-to-trigger-an-action-on-push-or-pull-request-but-not-both/td-p/35805 --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 850fa8e73..60fa1501f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,12 @@ name: main -on: [pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: macOS: