Skip to content

Commit 85d1d09

Browse files
authored
Create dependabot-automerge.yml (#1879)
1 parent 82c92e4 commit 85d1d09

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Dependabot Automerge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
7+
jobs:
8+
dependabot-automerge:
9+
runs-on: ubuntu-latest
10+
env:
11+
PR_URL: ${{github.event.pull_request.html_url}}
12+
GH_TOKEN: ${{ github.token }}
13+
steps:
14+
- name: describe for '${{ github.event.pull_request.title }}'
15+
run: |
16+
printf "github.actor == '%s'\n" "${{ github.actor }}"
17+
- name: merge
18+
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
19+
if: ${{ github.actor == 'dependabot[bot]'
20+
}}

0 commit comments

Comments
 (0)