Skip to content

Sync Main: More Bugs (Failed PR Creation) #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/sync-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ jobs:
- name: Push sync branch
run: |
git push origin sync-main-pr --force
# Ensure branch is visible to GitHub
gh api repos/:owner/:repo/branches/sync-main-pr || {
echo "Branch not yet visible to GitHub — waiting a bit more"
sleep 10
}
- name: Create or update PR
run: |
gh api repos/:owner/:repo/branches/sync-main-pr
PR_URL=$(gh pr list --head sync-main-pr --json url --jq '.[0].url')
if [ -z "$PR_URL" ]; then
gh pr create \
Expand All @@ -60,6 +66,7 @@ jobs:
else
echo "PR already exists: $PR_URL"
fi
exit 0
env:
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
Expand Down
Loading