-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 987 Bytes
/
auto-merge.yaml
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
name: Auto-merge
# https://github.com/marketplace/actions/merge-pull-requests-automerge-action
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
steps:
- name: Generate GH token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: 271330
private_key: ${{ secrets.GH_APP_PKEY }}
- name: Automerge PR
uses: pascalgn/automerge-action@v0.15.5
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
MERGE_METHOD: squash
MERGE_LABELS: "meta: automerge"
MERGE_COMMIT_MESSAGE: pull-request-title