From 979ae63948b00f5452d6e2e332824afccd685790 Mon Sep 17 00:00:00 2001
From: "kevin.wilder" <kevin.wilder@darkwolfsolutions.com>
Date: Thu, 23 Sep 2021 14:57:37 +0000
Subject: [PATCH] SKIP UPGRADE: allow MR to be in draft and skip the upgrade

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7db090fc03..b5b711f036 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -147,8 +147,8 @@ upgrade:
     # skip job for nightly master and "test-ci::infra" labeled pipelines
     - if: '($CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master") || $CI_MERGE_REQUEST_LABELS =~ /(^|,)test-ci::infra(,|$)/'
       when: never
-    # skip job when MR title starts with 'SKIP UPGRADE'
-    - if: '$CI_MERGE_REQUEST_TITLE =~ /^SKIP UPGRADE/'
+    # skip job when MR title starts with 'SKIP UPGRADE' 
+    - if: '$CI_MERGE_REQUEST_TITLE =~ /SKIP UPGRADE/'
       when: never
     # run pipeline on merge request events
     - if: $CI_PIPELINE_SOURCE == "merge_request_event"
-- 
GitLab