We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41406d1 commit ae5709dCopy full SHA for ae5709d
.github/workflows/sync-main.yml
@@ -48,8 +48,14 @@ jobs:
48
- name: Push sync branch
49
run: |
50
git push origin sync-main-pr --force
51
+ # Ensure branch is visible to GitHub
52
+ gh api repos/:owner/:repo/branches/sync-main-pr || {
53
+ echo "Branch not yet visible to GitHub — waiting a bit more"
54
+ sleep 10
55
+ }
56
- name: Create or update PR
57
58
+ gh api repos/:owner/:repo/branches/sync-main-pr
59
PR_URL=$(gh pr list --head sync-main-pr --json url --jq '.[0].url')
60
if [ -z "$PR_URL" ]; then
61
gh pr create \
@@ -60,6 +66,7 @@ jobs:
66
else
67
echo "PR already exists: $PR_URL"
62
68
fi
69
+ exit 0
63
70
env:
64
71
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
65
72
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
0 commit comments