Skip to content

Commit

Permalink
Chore: Ensure that the release script never pushes a blank release
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Mar 29, 2018
1 parent 89cb593 commit 980cc7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ increment_version() {
# Old version
OLD_VERSION=$(./build/current_version.sh)

# The master branch should not match the previous release tag
if [[ $(git log --oneline ...v$OLD_VERSION) == "" ]] ; then
echo "----------------------------------------------------"
echo "Your release has no new commits!"
echo "----------------------------------------------------"
exit 1
fi

if $major_release; then
echo "----------------------------------------------------------------------"
echo "Bumping major version..."
Expand Down

0 comments on commit 980cc7a

Please sign in to comment.