From e45ca7b41dcd3ace7681d6897505f85d374640f2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 14 Mar 2023 10:22:48 -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 c57df6c0..5e27abcb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,3 +96,12 @@ build: - make check - make distcheck - popd > /dev/null + +# +# 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'