Skip to content

Commit d7d65e5

Browse files
authored
add .github/workflows/automerge.yml (#140)
1 parent a051a05 commit d7d65e5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File managed by web3-bot. DO NOT EDIT.
2+
# See https://github.com/protocol/.github/ for details.
3+
4+
# Automatically merge pull requests opened by web3-bot, as soon as (and only if) all tests pass.
5+
# This reduces the friction associated with updating with our workflows.
6+
7+
on: [ pull_request ]
8+
9+
jobs:
10+
automerge:
11+
if: github.event.pull_request.user.login == 'web3-bot'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Wait on tests
15+
uses: lewagon/wait-on-check-action@bafe56a6863672c681c3cf671f5e10b20abf2eaa # v0.2
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
wait-interval: 10
20+
running-workflow-name: 'automerge' # the name of this job
21+
- name: Merge PR
22+
uses: pascalgn/automerge-action@741c311a47881be9625932b0a0de1b0937aab1ae # v0.13.1
23+
env:
24+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
25+
MERGE_LABELS: ""
26+
MERGE_METHOD: "squash"
27+
MERGE_DELETE_BRANCH: true

0 commit comments

Comments
 (0)