Skip to content

Commit

Permalink
Add automerge workflow (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
athackst authored Jan 6, 2025
1 parent 5de29a3 commit b76293a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto Merge Dependabot PRs

on:
pull_request_target:
types:
- opened
- synchronize
- reopened
workflow_dispatch:

permissions:
contents: write # Required for merging the PR
pull-requests: write # Required for managing pull requests

jobs:
automerge:
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable Auto-Merge for Dependabot PR
run: gh pr merge ${{ github.event.pull_request.number }} --auto --squash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b76293a

Please sign in to comment.