Debian Codegraph @

.github/workflows/auto-merge.yml

raw
1 name: Dependabot auto-merge
2 on: pull_request_target
3
4 permissions:
5 pull-requests: write
6 contents: write
7
8 jobs:
9 dependabot:
10 runs-on: ubuntu-latest
11 if: ${{ github.actor == 'dependabot[bot]' }}
12 steps:
13 - name: Dependabot metadata
14 id: metadata
15 uses: dependabot/[email protected]
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}}