Skip to content

Commit

Permalink
Allow lightweight (non-annotated) tags to be used for release
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Feb 2, 2022
1 parent f1de45a commit cd0633a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ else
subsystem="jitsu"
if [[ $( git branch --show-current) == "master" ]]; then
echo "Releasing master. Checking if HEAD is tagged"
git describe --exact-match HEAD >/dev/null 2>&1 || fail " ❌ HEAD is not tagged. Run git describe --exact-match HEAD "
latest_tag=$(git describe --exact-match HEAD)
git describe --tags --exact-match HEAD >/dev/null 2>&1 || fail " ❌ HEAD is not tagged. Run git describe --exact-match HEAD "
latest_tag=$(git describe --tags --exact-match HEAD)
version=${latest_tag//v/}
echo " ✅ Latest tag is $latest_tag, version is $version"
elif [[ $( git branch --show-current) == "beta" ]]; then
Expand Down Expand Up @@ -156,4 +156,4 @@ case $subsystem in
echo "Invalid input service [$subsystem]..."
exit 1
;;
esac
esac

0 comments on commit cd0633a

Please sign in to comment.