Skip to content

Commit

Permalink
fix(scripts): use version sort to get last tag for train bump
Browse files Browse the repository at this point in the history
  • Loading branch information
philbooth committed May 28, 2019
1 parent 101c095 commit 08d2c32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ if [ "$STATUS" != "" ]; then
fi

# 3. Find the last tag.
LAST_TAG=`git describe --tags --abbrev=0`
if [ "$BUILD_TYPE" = "Train" ]; then
LAST_TAG=`git tag -l --sort=version:refname | tail -1`
else
LAST_TAG=`git describe --tags --abbrev=0`
fi

# 4. Check there have been some commits since the last tag.
COMMITS=`git log $LAST_TAG..HEAD --pretty=oneline --abbrev-commit`
Expand Down

0 comments on commit 08d2c32

Please sign in to comment.