Update Dependabot Auto-Merge workflow (Github Workflows)

This commit is contained in:
Christer Warén 2022-02-24 01:06:34 +02:00
parent 36157e53e3
commit 24f6172fbd

View File

@ -11,13 +11,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }} if: ${{ github.actor == 'dependabot[bot]' }}
steps: steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.2.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs - name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL" run: gh pr comment "$PR_URL" --body "@dependabot merge"
env: env:
PR_URL: ${{ github.event.pull_request.html_url }} PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}