Skip to content

Commit 36a00c1

Browse files
committed
Create sync_release_pr.yml
1 parent b4decd8 commit 36a00c1

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+
workflow_dispatch:
5+
6+
jobs:
7+
create_sync_pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: checkout repository
11+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
12+
with:
13+
# Fetch all history for all branches
14+
fetch-depth: 0
15+
16+
- name: Create Sync Pull Request
17+
run: |
18+
gh pr create \
19+
--base main \
20+
--head release \
21+
--title "Sync release branch to main" \
22+
--body "This automated PR syncs the changes from the release branch back to the main branch."
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)