auto-merge.yml 650 B

123456789101112131415161718192021222324
  1. name: Dependabot auto-merge
  2. on: pull_request_target
  3. permissions:
  4. contents: read
  5. jobs:
  6. dependabot:
  7. runs-on: ubuntu-latest
  8. if: ${{ github.actor == 'dependabot[bot]' }}
  9. permissions:
  10. pull-requests: write
  11. contents: write
  12. steps:
  13. - name: Dependabot metadata
  14. id: metadata
  15. uses: dependabot/fetch-metadata@v2.4.0
  16. with:
  17. github-token: "${{ secrets.GITHUB_TOKEN }}"
  18. - name: Enable auto-merge for Dependabot PRs
  19. run: gh pr merge --auto --squash "$PR_URL"
  20. env:
  21. PR_URL: ${{github.event.pull_request.html_url}}
  22. GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}