Skip to content

Commit

Permalink
Auto-approve depend-a-bot-PRs (#7332)
Browse files Browse the repository at this point in the history
* Auto-approve depend-a-bot-PRs

* try to integrate in auto merge

* Moved checks to global ones (line 8)

* Ignore more actions

Co-authored-by: Siedlerchr <[email protected]>
  • Loading branch information
koppor and Siedlerchr authored Feb 16, 2021
1 parent aeec64f commit 30c1b88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ jobs:
automerge:
name: Automerge Dependabot
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: "WyriHaximus/[email protected]"
with:
ignoreActions: Automerge Dependabot,codecov/project
ignoreActions: Automerge Dependabot,Code coverage,Create snapcraft image,Deploy binaries on builds.jabref.org,codecov/project,markdown-link-check
checkInterval: 13
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto approve
uses: hmarr/[email protected]
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Merge pull requests
uses: pascalgn/[email protected]
if: steps.waitforstatuschecks.outputs.status == 'success'
Expand Down

0 comments on commit 30c1b88

Please sign in to comment.