-
Notifications
You must be signed in to change notification settings - Fork 74
52 lines (47 loc) · 1.49 KB
/
auto_merge_request.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Auto merge
on: push
permissions:
pull-requests: write
jobs:
merge-develop-into-testnet:
if: ${{ github.ref == 'refs/heads/develop' }}
name: Merge develop into testnet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: repo-sync/pull-request@v2
with:
source_branch: 'develop'
destination_branch: 'testnet'
pr_title: 'Merge develop into testnet'
pr_reviewer: 'keith-cy'
pr_label: 'auto-pr'
github_token: ${{ secrets.GITHUB_TOKEN }}
merge-testnet-into-mainnet:
if: ${{ github.ref == 'refs/heads/testnet' }}
name: Merge testnet into mainnet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: repo-sync/pull-request@v2
with:
source_branch: 'testnet'
destination_branch: 'master'
pr_title: 'Merge testnet into mainnet'
pr_reviewer: 'keith-cy'
pr_label: 'auto-pr'
github_token: ${{ secrets.GITHUB_TOKEN }}
merge-mainnet-back-to-develop:
if: ${{ github.ref == 'refs/heads/master' }}
name: Merge mainnet back to develop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: repo-sync/pull-request@v2
with:
source_branch: 'master'
destination_branch: 'develop'
pr_title: 'Merge mainnet into develop'
pr_reviewer: 'keith-cy'
pr_label: 'auto-pr'
github_token: ${{ secrets.GITHUB_TOKEN }}