Skip to content

Commit 7e90d99

Browse files
authored
Update sync-main.yml
1 parent e098dd3 commit 7e90d99

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/sync-main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- dilan/sync-main-bugs-6
78
paths:
89
- .github/workflows/sync-main.yml
910
schedule:
@@ -53,8 +54,19 @@ jobs:
5354
echo "Branch not yet visible to GitHub — waiting a bit more"
5455
sleep 10
5556
}
57+
git branch
58+
gh api repos/:owner/:repo/branches/sync-main-pr || {
59+
echo "Branch not yet visible to GitHub — waiting a bit more"
60+
sleep 10
61+
}
5662
- name: Create or update PR
5763
run: |
64+
git branch
65+
gh api repos/:owner/:repo/branches/sync-main-pr || {
66+
echo "Branch not yet visible to GitHub — waiting a bit more"
67+
sleep 10
68+
}
69+
git branch
5870
gh api repos/:owner/:repo/branches/sync-main-pr
5971
PR_URL=$(gh pr list --head sync-main-pr --json url --jq '.[0].url')
6072
if [ -z "$PR_URL" ]; then

0 commit comments

Comments
 (0)