Skip to content

Commit

Permalink
Enable auto-approve for dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdragon-001 committed Aug 26, 2024
1 parent 4cf3d3b commit 58b4559
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ jobs:
# Do not overwrite in case our version is outdated
push_options: "--force-with-lease"

auto-approve:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Auto approve Dependabot PRs
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

auto-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 58b4559

Please sign in to comment.