Skip to content

Commit

Permalink
add dependabot auto merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nabuskey committed Oct 3, 2023
1 parent 61f1d05 commit 0aab4e7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge

on:
pull_request_target:
branches: [ main ]
types: [ opened ]

permissions:
pull-requests: write
contents: write

jobs:
enableAutoMerge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
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 0aab4e7

Please sign in to comment.