Skip to content

Commit

Permalink
enable auto merge for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Nov 27, 2023
1 parent 3758469 commit 1b2c414
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Dependabot Auto Merge"

on:
pull_request:

jobs:
worker:
runs-on: ubuntu-latest

if: github.actor == 'dependabot[bot]'
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: WyriHaximus/github-action-wait-for-status@v1
with:
ignoreActions: worker,WIP
checkInterval: 300
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Auto Merge'
uses: pascalgn/[email protected]
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
MERGE_LABELS: "update"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_DELETE_BRANCH: true

0 comments on commit 1b2c414

Please sign in to comment.