Skip to content

GitHub Actions reviews #7

GitHub Actions reviews

GitHub Actions reviews #7

name: Auto-merge Dependabot PRs
on:
pull_request_target: # Changed from pull_request
types: [opened, synchronize, reopened]
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
permissions:
pull-requests: write
contents: write
steps:
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.AUTO_MERGE_PAT }}