ci: add some more workflow rules

cargo-culted from the ci-templates template.
This commit is contained in:
Tim-Philipp Müller 2023-04-16 10:19:22 +01:00
parent 8322ef3733
commit 47ec81544f

View file

@ -5,6 +5,14 @@ include:
ref: '88ed1082df2af02090916566742543f1dbaee988'
file: '/templates/fedora.yml'
# From https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/master/src/gitlab-ci.tmpl
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never
- if: $CI_COMMIT_BRANCH
variables:
FDO_UPSTREAM_REPO: 'cairo/cairo'
FDO_DISTRIBUTION_VERSION: '34'