From 147a7a7d560eb572a2f42e5ccb43d8e79b786e96 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 18 Aug 2025 02:00:04 -0500 Subject: [PATCH] Add workflow rules --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5094a7c..558e58e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,16 @@ stages: - check - trigger +workflow: + rules: + # Run when a merge request event is open + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + # Do not run branch-specific pipeline if there is an open MR + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never + # Run reduced pipeline for branches + - if: $CI_COMMIT_BRANCH + include: # Low-effort, we can always do lint checks, validations, and so forth - local: .gitlab/always.yml