Skip to content

Commit

Permalink
Only auto-approve dependabot PRs (#202)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke authored May 7, 2024
1 parent 0a24719 commit d22ade8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependabot auto-approve
on: pull_request

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28 changes: 0 additions & 28 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

0 comments on commit d22ade8

Please sign in to comment.