From 14f8f134bc069ee6fc5ee2dbe39c002b5163bde6 Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Mon, 12 Aug 2024 23:24:33 -0400 Subject: [PATCH] to prevent runaway job creation --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9860b18..2952fb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,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: