CI: add workflow rules

Required for pipelines to run after some infrastructure changes, see
https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438

Part-of: <https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/95>
This commit is contained in:
Peter Hutterer 2025-02-03 13:56:30 +10:00
parent 4e4c48d305
commit 9d5e1d1dc1

View file

@ -17,6 +17,13 @@ include:
file: '/templates/ci-fairy.yml' file: '/templates/ci-fairy.yml'
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
# global variables to be used by most/all jobs. # global variables to be used by most/all jobs.
variables: variables:
FDO_UPSTREAM_REPO: 'xorg/proto/xorgproto' FDO_UPSTREAM_REPO: 'xorg/proto/xorgproto'