Skip to content

Commit 212441a

Browse files
authored
Merge pull request #10 from bobberdolle1/add-dependabot-automerge
ci: add dependabot auto-merge workflow
2 parents 4f4168a + eecf0c2 commit 212441a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)