From 3da5e62741f8a6f9555bf489399145d5a83190f9 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 5 Aug 2024 19:14:12 -0400 Subject: [PATCH] ci: Add workflow rules to create merge request pipelines This should make Weblate MRs run again. Part-of: --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5db02bf35..f278849b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,15 @@ # there doesn't seem to be significant value to splitting the stages at the # moment. +# Create merge request pipelines for open merge requests, branch pipelines +# otherwise. This allows MRs for new users to run CI. +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never + - if: $CI_COMMIT_BRANCH + stages: - container - build