There was an error while loading. Please reload this page.
1 parent a561362 commit 9d83ee8Copy full SHA for 9d83ee8
1 file changed
.github/workflows/open_pull_request.yml
@@ -0,0 +1,28 @@
1
+name: Open a PR to main
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ workflow_dispatch:
8
9
+env:
10
+ MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`
11
12
+jobs:
13
+ pull-request:
14
+ name: Open pull request
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v5
19
20
+ - name: Open pull request
21
+ uses: repo-sync/pull-request@v2
22
+ with:
23
+ destination_branch: main
24
+ pr_title: 'chore: ${{ env.MESSAGE }}'
25
+ pr_body: |
26
+ This pull request will ${{ env.MESSAGE }}.
27
28
+ pr_draft: true
0 commit comments