Skip to content

Update dependabot-auto-approve.yml #1

Update dependabot-auto-approve.yml

Update dependabot-auto-approve.yml #1

name: Dependabot auto-approve

Check failure on line 1 in .github/workflows/dependabot-auto-approve.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dependabot-auto-approve.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
on: [pull_request, workflow_run]
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}