Skip to content

Commit 4e65d3e

Browse files
committed
New attempt for auto approve and merge
1 parent 5c5e91f commit 4e65d3e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Auto-approve and Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
auto-approve-and-merge:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Auto-approve Dependabot PRs
14+
if: github.actor == 'dependabot[bot]'
15+
uses: hmarr/auto-approve-action@v3
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
- name: Enable auto-merge for Dependabot PRs
20+
if: github.actor == 'dependabot[bot]'
21+
uses: peter-evans/enable-pull-request-automerge@v3
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
merge-method: merge

0 commit comments

Comments
 (0)