Skip to content

Commit 96026f7

Browse files
authored
Prevent merge of failing dependabot PRs
1 parent d225844 commit 96026f7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/automerge.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
name: Automerge Pull Requests
2-
on:
3-
pull_request:
4-
check_suite:
5-
types:
6-
- completed
7-
status: {}
2+
on: [pull_request]
83

94
jobs:
105
automerge:
116
name: Automerge Dependabot
127
runs-on: ubuntu-latest
138
if: github.actor == 'dependabot[bot]'
149
steps:
10+
- name: 'Wait for status checks'
11+
id: waitforstatuschecks
12+
uses: "WyriHaximus/github-action-wait-for-status@v2"
13+
with:
14+
ignoreActions: automerge
15+
checkInterval: 13
16+
env:
17+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1518
- name: Merge pull requests
1619
uses: pascalgn/automerge-action@v0.8.4
20+
if: steps.waitforstatuschecks.outputs.status == 'success'
1721
env:
1822
MERGE_METHOD: "squash"
1923
MERGE_LABELS: ""

0 commit comments

Comments
 (0)