Skip to content

Commit d345802

Browse files
committed
ci: add Dependabot auto-merge workflow
1 parent 5bf2957 commit d345802

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dependabot auto-merge
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- master
7+
- main
8+
types:
9+
- opened
10+
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
15+
jobs:
16+
enableAutoMerge:
17+
runs-on: ubuntu-latest
18+
if: github.event.pull_request.user.login == 'dependabot[bot]'
19+
steps:
20+
- name: Enable auto-merge for Dependabot PRs
21+
run: gh pr merge --auto --merge "$PR_URL"
22+
env:
23+
PR_URL: ${{ github.event.pull_request.html_url }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)