Skip to content

Commit 21edcb4

Browse files
authored
Create auto-merge-dependabot.yml
1 parent 2396c4b commit 21edcb4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Auto Merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
10+
jobs:
11+
auto-merge-dependabot:
12+
runs-on: ubuntu-latest
13+
14+
if: github.actor == 'dependabot[bot]'
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Auto-approve Dependabot PRs
21+
if: success()
22+
uses: hmarr/auto-approve-action@v3
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Auto-merge Dependabot PRs
27+
if: success()
28+
uses: "peter-evans/enable-pull-request-automerge@v3"
29+
with:
30+
pull-request-number: ${{ github.event.pull_request.number }}
31+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)