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.
commit0371f55541292ec6f27f95729aa1d319973800f0
authorMartin Nordholts <enselic@gmail.com>
dateSun 21 Feb 2021, 11:49 (6 years ago)
parentbc35592
.github/workflows/CICD.yml+7−1
@@ -4,7 +4,13 @@ env:
44 MIN_SUPPORTED_RUST_VERSION: "1.42.0"
55 CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
66
7−on: [push, pull_request]
7+on:
8+ pull_request:
9+ push:
10+ branches:
11+ - master
12+ tags:
13+ - '*'
814
915jobs:
1016 min_version: