Skip to content

Commit

Permalink
fix tag verify
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Aug 16, 2022
1 parent 6f8c609 commit 0980825
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/verify_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
set -e

git_tag=`git describe --tags --abbrev=0`
current_version= current_version=v`cat pyproject.toml | grep version | cut -d'"' -f 2`
current_version= current_version=v`cat pyproject.toml | grep -m 1 version | cut -d'"' -f 2`

if [ $current_version = $git_tag ]; then
echo "${git_tag} ${current_version}"

if [ $current_version == $git_tag ]; then
echo "Version does match git tag"
else
echo "Version do not match git tag, Poetry ${current_version} vs Tag: ${git_tag} "
echo "Version does not match git tag, Poetry: ${current_version} vs Tag: ${git_tag} "
exit 1
fi

0 comments on commit 0980825

Please sign in to comment.