From 7e90d99c28fcffb0dc1abb4361e154ef0a065832 Mon Sep 17 00:00:00 2001 From: dilanbhalla <35575727+dilanbhalla@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:14:08 -0700 Subject: [PATCH] Update sync-main.yml --- .github/workflows/sync-main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml index f10d5ce5bc5..fdbb7dccf28 100644 --- a/.github/workflows/sync-main.yml +++ b/.github/workflows/sync-main.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dilan/sync-main-bugs-6 paths: - .github/workflows/sync-main.yml schedule: @@ -53,8 +54,19 @@ jobs: echo "Branch not yet visible to GitHub — waiting a bit more" sleep 10 } + git branch + 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: | + git branch + gh api repos/:owner/:repo/branches/sync-main-pr || { + echo "Branch not yet visible to GitHub — waiting a bit more" + sleep 10 + } + git branch 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