-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 958 Bytes
/
pr-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
---
name: Automerge
on:
pull_request_target:
types: [labeled, synchronize]
jobs:
automerge_ci:
name: Automerge CI
runs-on: ubuntu-latest
if: |
github.actor == 'udondan' &&
contains(github.event.pull_request.labels.*.name, 'automerge')
steps:
- name: Wait for tests to succeed
uses: fountainhead/action-wait-for-check@v1.2.0
id: wait-for-ci
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: success
ref: ${{ github.event.pull_request.head.sha || github.sha }}
timeoutSeconds: 1200
intervalSeconds: 30
- name: Automerge
uses: pascalgn/automerge-action@v0.16.4
if: steps.wait-for-ci.outputs.conclusion == 'success'
env:
MERGE_LABELS: automerge
UPDATE_LABELS: automerge
GITHUB_TOKEN: ${{ secrets.OVERRIDE_TOKEN }}
MERGE_DELETE_BRANCH: true
MERGE_METHOD: squash