From 263e790a23b19d47d2a4de1d02778bed1894efff Mon Sep 17 00:00:00 2001 From: Dantali0n <info@dantalion.nl> Date: Fri, 29 Sep 2023 15:39:29 +0200 Subject: [PATCH] Invert workflow rule to prevent merge request pipelines --- .gitlab-ci.common.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.common.yml b/.gitlab-ci.common.yml index 06cb5e7..dc9eb85 100644 --- a/.gitlab-ci.common.yml +++ b/.gitlab-ci.common.yml @@ -3,9 +3,9 @@ workflow: rules: -# # Don't create a pipeline if it's a commit pipeline on a branch and that branch has open merge requests -# - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS -# when: never + # Don't create for merge request pipelines, prevents detached pipeline + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: never - when: always # Set to 1 to force a rebuild of the Docker image -- GitLab