Skip to content

Commit ed31f43

Browse files
authored
Update sync-main.yml
1 parent d81989f commit ed31f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sync-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
7373
echo "🔄 Waiting for branch '$BRANCH_NAME' to be visible on GitHub..."
7474
for (( i=1; i<=MAX_RETRIES; i++ )); do
75-
if gh api "repos/:owner/:repo/branches/$BRANCH_NAME" > /dev/null 2>&1; then
75+
if git ls-remote --exit-code origin "refs/heads/$BRANCH_NAME" > /dev/null 2>&1; then
7676
echo "✅ Branch is now visible on GitHub."
7777
break
7878
else

0 commit comments

Comments
 (0)