From 445834826d4590d4d6f1f9f50c78df170835f02a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 14 Mar 2023 10:39:32 -0700 Subject: [PATCH] gitlab CI: add workflow rules Needed due to the gitlab config changes described in: https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438 Signed-off-by: Alan Coopersmith --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1e725331..a61bf4def 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,3 +139,12 @@ check-merge-request: reports: junit: results.xml allow_failure: true + +# +# Workflow rules needed due to: +# https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438 +# +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_PIPELINE_SOURCE == 'push'