Skip to content

Add Dependabot configuration with auto-approve and auto-merge workflows #1

Add Dependabot configuration with auto-approve and auto-merge workflows

Add Dependabot configuration with auto-approve and auto-merge workflows #1

name: Dependabot auto-approve
on: pull_request
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
# Only run for PRs opened by Dependabot
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Approve Dependabot PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}