We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d81989f commit ed31f43Copy full SHA for ed31f43
.github/workflows/sync-main.yml
@@ -72,7 +72,7 @@ jobs:
72
73
echo "🔄 Waiting for branch '$BRANCH_NAME' to be visible on GitHub..."
74
for (( i=1; i<=MAX_RETRIES; i++ )); do
75
- 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
76
echo "✅ Branch is now visible on GitHub."
77
break
78
else
0 commit comments