Skip to content

Commit

Permalink
Merge pull request #154 from alphagov/use-travis-branch
Browse files Browse the repository at this point in the history
Use TRAVIS_BRANCH when running in travis-ci
  • Loading branch information
benlovell committed Feb 18, 2016
2 parents cd3f1d3 + 42ba8de commit 0cab638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create-release-tag.sh
Original file line number Diff line number Diff line change
@@ -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`"

Expand Down

0 comments on commit 0cab638

Please sign in to comment.