File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Dependabot auto-merge
2- on : pull_request_target
2+ on : pull_request
33
44permissions :
5- pull-requests : write
65 contents : write
6+ pull-requests : write
77
88jobs :
99 dependabot :
1010 runs-on : ubuntu-latest
11- if : ${{ github.actor == 'dependabot[bot]' }}
11+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'nonebot/plugin-alconna'
1212 steps :
1313 - name : Dependabot metadata
1414 id : metadata
15- uses : dependabot/fetch-metadata@v3.0.0
15+ uses : dependabot/fetch-metadata@v3
1616 with :
1717 github-token : " ${{ secrets.GITHUB_TOKEN }}"
1818 - name : Enable auto-merge for Dependabot PRs
1919 run : gh pr merge --auto --squash "$PR_URL"
2020 env :
2121 PR_URL : ${{github.event.pull_request.html_url}}
22- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
22+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments