Skip to content

Commit

Permalink
Merge pull request #1138 from soutaro/auto-merge-dependabots
Browse files Browse the repository at this point in the history
Add GHA config to merge dependabot PRs automatically
  • Loading branch information
soutaro authored May 29, 2024
2 parents cb81d16 + 480969a commit 18a5dd3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Merge dependabot PRs automatically
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == '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 18a5dd3

Please sign in to comment.