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 2021-02-21 11:49:34 +01:00 committed by David Peter
parent bc35592fd9
commit 0371f55541

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: