From f8db155c377da8bfab74329ff0c8036479dcc4d7 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 13 Apr 2019 17:44:08 -0700 Subject: [PATCH] Fix CI variable --- bin/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/deploy.sh b/bin/deploy.sh index 6017029..dd4900b 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -119,8 +119,8 @@ svn cp "trunk" "tags/$PLUGIN_VERSION" svn status # Stop here unless this is a merge into master. -if [[ -z "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" || "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "master" ]]; then - echo "𝘅︎ EXITING before commit step as this is the '${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}' branch, not the 'master' branch." 1>&2 +if [[ -z "$CI_COMMIT_REF_NAME" || "$CI_COMMIT_REF_NAME" != "master" ]]; then + echo "𝘅︎ EXITING before commit step as this is the '${CI_COMMIT_REF_NAME}' branch, not the 'master' branch." 1>&2 exit 0 fi -- GitLab