From 198cfc0e89ef1e504358fe23eda41d64b4562573 Mon Sep 17 00:00:00 2001 From: hangyu Date: Thu, 6 Nov 2025 13:58:06 -0800 Subject: [PATCH 1/5] Create sync_release_pr.yml --- .github/workflows/sync_release_pr.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync_release_pr.yml diff --git a/.github/workflows/sync_release_pr.yml b/.github/workflows/sync_release_pr.yml new file mode 100644 index 00000000000..562802f7f7b --- /dev/null +++ b/.github/workflows/sync_release_pr.yml @@ -0,0 +1,24 @@ +name: "Sync Release to Main" + +on: + workflow_dispatch: + +jobs: + create_sync_pr: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + with: + # Fetch all history for all branches + fetch-depth: 0 + + - name: Create Sync Pull Request + run: | + gh pr create \ + --base main \ + --head release \ + --title "Sync release branch to main" \ + --body "This automated PR syncs the changes from the release branch back to the main branch." + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From d266cdf3c6fc17b2eab5a658c2995cbf404eb1cb Mon Sep 17 00:00:00 2001 From: hangyu Date: Thu, 6 Nov 2025 15:17:24 -0800 Subject: [PATCH 2/5] Update sync_release_pr.yml --- .github/workflows/sync_release_pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_release_pr.yml b/.github/workflows/sync_release_pr.yml index 562802f7f7b..2c53665c9a6 100644 --- a/.github/workflows/sync_release_pr.yml +++ b/.github/workflows/sync_release_pr.yml @@ -1,7 +1,9 @@ name: "Sync Release to Main" on: - workflow_dispatch: + push: + branches: + - 'release' jobs: create_sync_pr: From 8e6cf16ad4474510a9dc6c6fde2371dd07a45b4f Mon Sep 17 00:00:00 2001 From: hangyu Date: Mon, 10 Nov 2025 11:21:55 -0800 Subject: [PATCH 3/5] Update sync_release_pr.yml --- .github/workflows/sync_release_pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_release_pr.yml b/.github/workflows/sync_release_pr.yml index 2c53665c9a6..dc485becd7b 100644 --- a/.github/workflows/sync_release_pr.yml +++ b/.github/workflows/sync_release_pr.yml @@ -3,7 +3,7 @@ name: "Sync Release to Main" on: push: branches: - - 'release' + - 'release' jobs: create_sync_pr: @@ -23,4 +23,4 @@ jobs: --title "Sync release branch to main" \ --body "This automated PR syncs the changes from the release branch back to the main branch." env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c489f724e57551e22f89cae0db1f1f24e5249e6b Mon Sep 17 00:00:00 2001 From: hangyu Date: Mon, 17 Nov 2025 13:09:13 -0800 Subject: [PATCH 4/5] Update sync_release_pr.yml --- .github/workflows/sync_release_pr.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sync_release_pr.yml b/.github/workflows/sync_release_pr.yml index dc485becd7b..ee3a208be3c 100644 --- a/.github/workflows/sync_release_pr.yml +++ b/.github/workflows/sync_release_pr.yml @@ -15,12 +15,12 @@ jobs: # Fetch all history for all branches fetch-depth: 0 - - name: Create Sync Pull Request - run: | - gh pr create \ - --base main \ - --head release \ - --title "Sync release branch to main" \ - --body "This automated PR syncs the changes from the release branch back to the main branch." - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "sync release branch to main" + title: "Sync release branch to main"" + body: "This automated PR syncs the changes from the release branch back to the main branch." + branch: release + base: main From 7867b319799586fbc52fcacd055336dd745120f9 Mon Sep 17 00:00:00 2001 From: hangyu Date: Mon, 17 Nov 2025 13:56:45 -0800 Subject: [PATCH 5/5] lint --- .github/workflows/sync_release_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_release_pr.yml b/.github/workflows/sync_release_pr.yml index ee3a208be3c..bfa1f3de683 100644 --- a/.github/workflows/sync_release_pr.yml +++ b/.github/workflows/sync_release_pr.yml @@ -20,7 +20,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: "sync release branch to main" - title: "Sync release branch to main"" + title: "Sync release branch to main" body: "This automated PR syncs the changes from the release branch back to the main branch." branch: release base: main