From 1d04e4aac229e0cb1563b3eaf8e6b1d5e9089d87 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:01:12 +0200 Subject: [PATCH] exclude manual deploy-commit-to-staging from running on PR merge (#558) --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3405da3..7b0d4cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -209,7 +209,9 @@ deploy-commit-to-staging: <<: *deploy environment: name: parity-stg - when: manual + rules: + - if: '$CI_COMMIT_BRANCH =~ /^[0-9]+/' + when: manual # Automatically deploy `master` branch or tag like `v1.0` to staging deploy-master-to-staging: