Skip to content

Commit

Permalink
Merge pull request #1315 from darkdragon-001/dependabot-auto-approve
Browse files Browse the repository at this point in the history
Enable auto-approve for dependabot PRs
  • Loading branch information
darkdragon-001 committed Aug 27, 2024
2 parents 7db0c4f + 58b4559 commit cf5c920
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 cf5c920

Please sign in to comment.