Skip to content

Commit dffb6e1

Browse files
authored
Merge pull request #1 from ferrous-systems/amanjeev/set-default-branch-as-main
gh action for merging main to master on pr merge
2 parents e6dd2c6 + 198cbe8 commit dffb6e1

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 master from main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
sync-branches:
13+
runs-on: ubuntu-latest
14+
name: Keep master and main in sync until master is done
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Merge master <- main
19+
uses: devmasx/merge-branch@master
20+
with:
21+
type: now
22+
from_branch: main
23+
target_branch: master
24+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)