-
Notifications
You must be signed in to change notification settings - Fork 41
32 lines (29 loc) · 905 Bytes
/
auto-merge.yml
File metadata and controls
32 lines (29 loc) · 905 Bytes
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
name: Auto-merge
on:
pull_request:
types:
- labeled
- synchronize
- opened
jobs:
auto-merge:
name: 'Auto-merge'
runs-on: ubuntu-latest
permissions: write-all
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'automerge')
steps:
- name: Wait for tests to succeed
uses: lewagon/wait-on-check-action@v1.3.4
timeout-minutes: 15
with:
ref: ${{ github.ref }}
running-workflow-name: 'Auto-merge'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
- uses: juliangruber/merge-pull-request-action@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
number: ${{ github.event.number }}
method: squash
repo: dnsimple/dnsimple-python