From 5d2c20c36580bb332315d91e67c4e80696d88120 Mon Sep 17 00:00:00 2001 From: Jonathan Rich Date: Mon, 8 Jun 2026 11:26:26 -0400 Subject: [PATCH] QA-354 Prevent duplicate pipelines for MRs --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ecf6c44..6e401ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,15 @@ include: default: retry: 2 +# Prevent duplicate pipelines for push events to branches that also have open MRs +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always + - if: $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS + when: never + - when: always + stages: - template - run