Skip to content

Commit 8a1b83e

Browse files
committed
Make dependabot merge pull requests
1 parent c95abab commit 8a1b83e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Merge pull request created by Dependabot
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
mergePullRequestByDependabot:
14+
if: github.actor == 'dependabot'
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
steps:
21+
- name: Comment to merge Dependabot PR
22+
uses: actions/github-script@v8
23+
with:
24+
script: |
25+
github.rest.issues.createComment({
26+
issue_number: context.issue.number,
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
body: @dependabot merge
30+
})

0 commit comments

Comments
 (0)