From 2473258c14a571ece71f2f47c61057bcde1c0313 Mon Sep 17 00:00:00 2001 From: "a.petraki" <a.petraki@perx.ru> Date: Mon, 17 Jun 2024 15:41:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=B9=D0=BF=D0=BB=D0=B0=D0=B9=D0=BD=D0=B0=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20Needs=5Frelease:=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a008562c..0382950a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -108,11 +108,18 @@ release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest rules: - - if: $CI_PIPELINE_SOURCE == "pipeline" && $NEEDS_RELEASE == "true" + - if: $CI_PIPELINE_SOURCE == "pipeline" - if: $CI_PIPELINE_SOURCE == "web" when: manual script: - echo "Start release $VERSION" + - | + if [ $NEEDS_RELEASE != "true" ]; then + exit 203 + fi + allow_failure: + exit_codes: + - 203 release: name: 'Release $VERSION' description: '$VERSION' -- GitLab