From 42ba8dece1d61ff48b994dd3736a63791e60c123 Mon Sep 17 00:00:00 2001 From: Andrew Vos Date: Thu, 18 Feb 2016 13:01:21 +0000 Subject: [PATCH] Use TRAVIS_BRANCH when running in travis-ci There's no other way to get the correct branch name. --- create-release-tag.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create-release-tag.sh b/create-release-tag.sh index 78d29a1871..7150288ccd 100755 --- a/create-release-tag.sh +++ b/create-release-tag.sh @@ -1,13 +1,13 @@ #!/bin/bash -set -ev +set -ex # Create a new tag if the version file has been updated and a tag for that # version doesn't already exist. # Are we on master branch? # We shouldn't push tags for version bump branches. -BRANCH=`git rev-parse --abbrev-ref HEAD` -if [[ "$BRANCH" == "master" ]]; then + +if [[ "$TRAVIS_BRANCH" == "master" ]]; then # get the version from the version file VERSION_TAG="v`cat VERSION.txt`"