Skip to content

Commit 67f4678

Browse files
authored
[batch-release] Step3: Adds github action to create a PR to sync changes on the go_router release branch back to the main branch (#10393)
issue: [#177110](flutter/flutter#177110) Everytime something is pushed to the release branch, sync it back to the main branch. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 93c9395 commit 67f4678

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Sync Release to Main"
2+
3+
on:
4+
push:
5+
branches:
6+
# As packages opt into batched releases, they need to be added here
7+
- 'release-go_router'
8+
9+
jobs:
10+
create_sync_pr:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
15+
16+
- name: Create Pull Request
17+
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
commit-message: "Sync ${{ github.ref_name }} to main"
21+
title: "Sync ${{ github.ref_name }} to main"
22+
body: "This automated PR syncs the changes from the release branch ${{ github.ref_name }} back to the main branch."
23+
branch: ${{ github.ref_name }}
24+
base: main

0 commit comments

Comments
 (0)