Skip to content

Commit 28a36d1

Browse files
committed
Add auto-merge for Dependabot PRs
This will make it easier to maintain the repository. Since this is a demo project, it is enough to pass CI to update the dependency. Do not mindlessly copy this approach to projects on which other projects depend.
1 parent 13126f2 commit 28a36d1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Dependabot auto-merge
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
auto-merge:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
steps:
13+
- name: Enable auto-merge for Dependabot PRs
14+
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
15+
env:
16+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)