From 4d2ccfb1c5f18dba9886405e7e6e2264e04e1f89 Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Mon, 12 Aug 2024 23:43:46 -0400 Subject: [PATCH] prevent runaway branching --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ea9c5c..9d8816a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,8 @@ variables: composer_update: stage: update + rules: + - if: '$CI_COMMIT_BRANCH == "main"' image: composer:latest interruptible: true # allows to stop the job if a newer pipeline starts, saving resources and allowing new jobs to start because job concurrency is limited script: