Update sync-main.yml

This commit is contained in:
dilanbhalla
2025-04-08 11:51:21 -07:00
committed by GitHub
parent d81989f345
commit ed31f43cfd

View File

@@ -72,7 +72,7 @@ jobs:
echo "🔄 Waiting for branch '$BRANCH_NAME' to be visible on GitHub..."
for (( i=1; i<=MAX_RETRIES; i++ )); do
if gh api "repos/:owner/:repo/branches/$BRANCH_NAME" > /dev/null 2>&1; then
if git ls-remote --exit-code origin "refs/heads/$BRANCH_NAME" > /dev/null 2>&1; then
echo "✅ Branch is now visible on GitHub."
break
else