We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc34fa commit 3760721Copy full SHA for 3760721
.github/workflows/merge_master_to_pr_branch.yml
@@ -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