From ed31f43cfde7161540dc847559e401a241db088a Mon Sep 17 00:00:00 2001 From: dilanbhalla <35575727+dilanbhalla@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:51:21 -0700 Subject: [PATCH] Update sync-main.yml --- .github/workflows/sync-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml index 038a5ceb491..94be7897137 100644 --- a/.github/workflows/sync-main.yml +++ b/.github/workflows/sync-main.yml @@ -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