diff --git a/.gitlab-ci.common.yml b/.gitlab-ci.common.yml index 06cb5e711292bab4fc71c680c9b83d60bf69b232..dc9eb857930b5f76fa1693ecb49222ee720213a8 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