From 9d5e1d1dc150e0eb3a562020f2069fad7ec9b3a9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 3 Feb 2025 13:56:30 +1000 Subject: [PATCH] CI: add workflow rules Required for pipelines to run after some infrastructure changes, see https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438 Part-of: --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7e8a2aa..39f573b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,13 @@ include: file: '/templates/ci-fairy.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. variables: FDO_UPSTREAM_REPO: 'xorg/proto/xorgproto'