We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e098dd3 commit 7e90d99Copy full SHA for 7e90d99
1 file changed
.github/workflows/sync-main.yml
@@ -4,6 +4,7 @@ on:
4
push:
5
branches:
6
- main
7
+ - dilan/sync-main-bugs-6
8
paths:
9
- .github/workflows/sync-main.yml
10
schedule:
@@ -53,8 +54,19 @@ jobs:
53
54
echo "Branch not yet visible to GitHub — waiting a bit more"
55
sleep 10
56
}
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
+ }
62
- name: Create or update PR
63
run: |
64
65
66
67
68
69
70
gh api repos/:owner/:repo/branches/sync-main-pr
71
PR_URL=$(gh pr list --head sync-main-pr --json url --jq '.[0].url')
72
if [ -z "$PR_URL" ]; then
0 commit comments