CI: Guard the gh api command

This commit is contained in:
Ty
2026-03-26 16:11:16 -04:00
committed by GitHub
parent ee35e6f751
commit 7d696dbd3e
+6 -7
View File
@@ -40,14 +40,13 @@ jobs:
echo "waiting for tag to be deleted"
while true; do
gh api "repos/$REPO/git/ref/tags/latest" >/dev/null 2>&1
if ! gh api "repos/$REPO/git/ref/tags/latest" >/dev/null 2>&1; then
echo "tag deleted"
break
fi
if [ $? -ne 0 ]; then
break
fi
sleep 10
echo "still waiting..."
sleep 10
echo "still waiting..."
done
gh release create latest --latest --title "Latest Build"