Skip to content

Commit

Permalink
Merge pull request #1294 from darkdragon-001/dependabot-auto-merge
Browse files Browse the repository at this point in the history
Enable auto-merge for dependabot PRs
  • Loading branch information
darkdragon-001 committed Aug 7, 2024
2 parents ceefed0 + e76a18d commit 5f05476
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,17 @@ jobs:
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
# Do not overwrite in case our version is outdated
push_options: "--force-with-lease"

auto-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
# NOTE Auto-merge is blocked until branch protection rules are fulfilled
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 5f05476

Please sign in to comment.