Skip to content

Commit

Permalink
build: doesn't recognize correctly the branch (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvalke authored Sep 30, 2021
1 parent 2fe2131 commit 2cb82fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/after_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ HTTP_SUCCESS=false
currentVersion=$(npx -c 'echo "$npm_package_version"')
echo "$currentVersion"

TAGGED_BRANCH=$(git ls-remote origin | sed -n "\|$TRAVIS_COMMIT\s\+refs/heads/|{s///p}")
TAGGED_BRANCH=$(git branch --contains "$TRAVIS_COMMIT" --list "master")
UPDATE_SCHEMA=true
if [ "$TAGGED_BRANCH" != "master" ]; then
if [ "${TAGGED_BRANCH//[[:blank:]]/}" != "master" ]; then
UPDATE_SCHEMA=false
fi

Expand Down

0 comments on commit 2cb82fc

Please sign in to comment.