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.
This commit is contained in:
Martin Nordholts authored and David Peter committed 2021-02-22 21:45:52 +01:00
1 parent bc35592fd9
commit 0371f55541
1 file changed
+7 -1
+7 -1
View File
@@ -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: