Skip to content

Commit

Permalink
Check branch name before attempting to tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Feb 13, 2019
1 parent a2b53b1 commit 281eaef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tag-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if [ "$#" -ne 1 ] ; then
exit 1
fi

if [ ! "$(git rev-parse --abbrev-ref)" = master ] ; then
echo "Must be on master branch"
exit 2
fi

v="${1}"

export RELEASE_GIT_TAG="${v}"
Expand Down

0 comments on commit 281eaef

Please sign in to comment.