Update Dependabot Auto-Merge workflow (Github Workflows)

This commit is contained in:
Christer Warén 2022-02-26 07:04:37 +02:00
parent 304896bba2
commit f77b8a91e0

View File

@ -1,5 +1,5 @@
name: Dependabot Auto-Merge
on: pull_request
on: pull_request_target
permissions:
pull-requests: write
@ -12,7 +12,7 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr comment "$PR_URL" --body "@dependabot merge"
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
PR_URL: ${{ github.event.pull_request_target.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}