Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions dependabot-automerge/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependabot automerge
description: Automatically approves and merges Dependabot pull requests.
inputs:
github-token:
description: GitHub token with write permissions to the repository.
required: true
runs:
using: "composite"
steps:
- name: Enable auto-merge for Dependabot PRs
if: github.event.pull_request.user.login == 'dependabot[bot]'
shell: bash
run: gh pr review "$PR_URL" --approve && gh pr merge "$PR_URL" --admin --rebase
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{inputs.github-token}}