fix: pre-push tag (#1614)

Fix issue of git was verifying incorrect Tag
This commit is contained in:
Peter Chen
2024-09-11 09:44:42 -04:00
committed by GitHub
parent ee6018186e
commit 0ede0ed351

View File

@@ -42,7 +42,7 @@ verify_tag_signed() {
while read local_ref local_oid remote_ref remote_oid; do
# Check some things if we're pushing a branch called "release/"
if echo "$remote_ref" | grep ^refs\/heads\/release\/ &> /dev/null ; then
version=$(echo $remote_ref | awk -F/ '{print $NF}')
version=$(git tag --points-at HEAD)
echo "Looks like you're trying to push a $version release..."
echo "Making sure you've signed and tagged it."
if verify_commit_signed && verify_tag && verify_tag_signed ; then