| 1 | name: Dependabot Automerge |
| 2 | on: pull_request |
| 3 | |
| 4 | permissions: |
| 5 | contents: write |
| 6 | |
| 7 | jobs: |
| 8 | dependabot-automerge: |
| 9 | runs-on: ubuntu-latest |
| 10 | env: |
| 11 | PR_URL: ${{github.event.pull_request.html_url}} |
| 12 | GH_TOKEN: ${{ github.token }} |
| 13 | steps: |
| 14 | - name: describe for '${{ github.event.pull_request.title }}' |
| 15 | run: | |
| 16 | printf "github.actor == '%s'\n" "${{ github.actor }}" |
| 17 | - name: merge |
| 18 | run: gh pr merge --auto --squash --delete-branch "$PR_URL" |
| 19 | if: ${{ github.actor == 'dependabot[bot]' }} |