-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 917 Bytes
/
automerge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Automerge
on:
push:
branches: [master]
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
- name: Merge master back to develop
run: |
git fetch --unshallow
git checkout develop
git pull
git merge --no-ff master -m "Merge branch 'master' into develop" && git push
create_pull_request:
needs: merge
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
destination_branch: "develop"
pr_title: "Pulling master into develop"
pr_label: "auto-merge-pr"
github_token: ${{ secrets.GITHUB_TOKEN }}