Skip to content

Commit

Permalink
Improve librelease.sh to enforce annotated tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Spoons GitHub Bot authored and Spoons GitHub Bot committed Apr 10, 2021
1 parent 73aa47f commit 1e59aed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/librelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ function assert_version_in_xcode() {
function assert_version_in_git_tags() {
echo "Checking git tag..."
pushd "${HAMMERSPOON_HOME}" >/dev/null
local TAGTYPE
TAGTYPE="$(git cat-file -t "$VERSION")"
if [ "$TAGTYPE" != "tag" ]; then
fail "$VERSION is not an annotated tag, it's either missing or a lightweight tag"
fi

local GITVER
GITVER="$(git tag | grep "$VERSION")"
popd >/dev/null
Expand Down

0 comments on commit 1e59aed

Please sign in to comment.