From 248e5673efb89c8b2801c787829fa6950e38780f Mon Sep 17 00:00:00 2001 From: Georgia Garcia Date: Wed, 2 Oct 2024 17:31:25 -0300 Subject: [PATCH] .gitlab-ci.yml: run pipeline in merge requests too Hopefully this will allow us to run pipelines in regular branches but also run it on merge requests on the parent project. This is needed for users that are not verified by Gitlab. https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#run-pipelines-in-the-parent-project --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 613c40b15..a626d5848 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,12 @@ image: ubuntu:latest # XXX - add a deploy stage to publish man pages, docs, and coverage # reports +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH + stages: - build - test