From 9f57985f8ca449be70ae60fc743641b8c49937dc Mon Sep 17 00:00:00 2001 From: RyanDagg Date: Thu, 1 Jun 2023 16:39:23 -0600 Subject: [PATCH] release v8.1.7 round 2 (#2380) * v8.1.7 * fix: look at current branch for tag & push --- scripts/release/create-git-tag-and-push | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release/create-git-tag-and-push b/scripts/release/create-git-tag-and-push index 1034fd6cd9..25c19cf672 100755 --- a/scripts/release/create-git-tag-and-push +++ b/scripts/release/create-git-tag-and-push @@ -3,9 +3,10 @@ set -e -o pipefail PACKAGE_VERSION=`node -e "console.log(require('./packages/cli/package.json').version)"` +CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` -if [[ "${GITHUB_REF}" != "main" ]]; then - echo "script must be run on branch 'main'" +if [[ "${CURRENT_BRANCH}" != "main" ]]; then + echo "script must be run on branch 'main'. On $CURRENT_BRANCH" exit 1 fi