infra: fix prev tag condition (#27891)

This commit is contained in:
Erick Friis 2024-11-04 12:42:22 -08:00 committed by GitHub
parent d7c39e6dbb
commit 75f80c2910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,8 @@ jobs:
fi fi
# confirm prev-tag actually exists in git repo with git tag # confirm prev-tag actually exists in git repo with git tag
if [ -z git tag -l "$PREV_TAG" ]; then GIT_TAG_RESULT=$(git tag -l "$PREV_TAG")
if [ -z "$GIT_TAG_RESULT" ]; then
echo "Previous tag $PREV_TAG not found in git repo" echo "Previous tag $PREV_TAG not found in git repo"
exit 1 exit 1
fi fi