Skip to content

Commit

Permalink
release v8.1.7 round 2 (#2380)
Browse files Browse the repository at this point in the history
* v8.1.7

* fix: look at current branch for tag & push
  • Loading branch information
ryandagg committed Jun 1, 2023
1 parent 51cdbdb commit 9f57985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/release/create-git-tag-and-push
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f57985

Please sign in to comment.