Skip to content

Commit

Permalink
fix: Improve tag release script
Browse files Browse the repository at this point in the history
Align with httpstan's version.
  • Loading branch information
riddell-stan committed Oct 21, 2021
1 parent 100604a commit 5c6535f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/tag-release
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ set -euo pipefail

KEYID=85107A96512971B8C55932085D5D0CFF0A51A83D

BRANCH=$(git branch --show-current)
[[ $BRANCH = "main" ]] || echo "Not on 'main' branch. Stopping." && exit 1

# check that "Bump version" appears in most recent commit
git log -1 | grep -q -s version
git log -1 | grep -q -s version || echo "Did not find 'version' mentioned in commit message. Has the version been updated?" && exit 1

VERSION=$(grep '^version' pyproject.toml | sed 's/version = "\([^"]\+\)"/\1/')
read -r -p "About to create tag for $VERSION. Abort with control-c."
Expand Down

0 comments on commit 5c6535f

Please sign in to comment.