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

View File

@@ -107,7 +107,8 @@ jobs:
fi
# 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"
exit 1
fi