From 0371f55541292ec6f27f95729aa1d319973800f0 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 21 Feb 2021 11:49:34 +0100 Subject: CICD: Don't run jobs twice in PRs Without this change, creating a PR triggers all jobs to run twice. Once due to a push event and once due to a pull_request event. Change to only trigger jobs due to push when pushing a tag or to the master branch, to avoid duplicate jobs for each PR. --- .github/workflows/CICD.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 17318f54..eb4bdbf9 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -4,7 +4,13 @@ env: MIN_SUPPORTED_RUST_VERSION: "1.42.0" CICD_INTERMEDIATES_DIR: "_cicd-intermediates" -on: [push, pull_request] +on: + pull_request: + push: + branches: + - master + tags: + - '*' jobs: min_version: -- cgit v1.2.3