Skip to content

Commit 6322b2d

Browse files
authored
Add trigger for push to main branch for sync'ing with master (#2387)
* gh action for merging main to master on pr merge * remove pull_request as trigger. only use push, that is after merging the pull_request
1 parent ed2d06e commit 6322b2d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: sync master from main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
sync-branches:
10+
runs-on: ubuntu-latest
11+
name: Keep master and main in sync until master is done
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Merge master <- main
16+
uses: devmasx/merge-branch@master
17+
with:
18+
type: now
19+
from_branch: main
20+
target_branch: master
21+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)