Skip to content

Commit 3760721

Browse files
committed
auto merge code to pr branch
1 parent cfc34fa commit 3760721

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Merge master into pull request
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
merge:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Fetch all branches
16+
run: git fetch --all
17+
18+
- name: Merge master into pull request
19+
run: |
20+
git checkout ${{ github.event.pull_request.head.ref }}
21+
git merge origin/master
22+
23+
- name: Push changes
24+
run: git push origin HEAD:${{ github.event.pull_request.head.ref }}
25+
if: success()
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)