Skip to content

Commit

Permalink
ci: add automerge workflow for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsneighbour committed Jun 16, 2024
1 parent d4c5a84 commit 8bc9a55
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto-merge Dependabot PRs
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: write

jobs:
dependabot:
name: 'Dependabot'
#needs: [build, e2e]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 8bc9a55

Please sign in to comment.