From 19c77daf2a21cc8d51a3c1cb6386a8e0c73dbfa5 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Sat, 20 Mar 2021 09:28:11 +0100 Subject: [PATCH] Trigger the workflow on push or pull request, but only for the main branch, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e87f6a..ab551f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,13 @@ name: Python package -on: [push, pull_request] +on: + # Trigger the workflow on push or pull request, but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master env: target_python_version: 3.8