Skip to content

Commit 0f3967d

Browse files
committed
add auto-merge
1 parent 0489b99 commit 0f3967d

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/dependabot.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ updates:
1616
schedule:
1717
interval: "daily"
1818
open-pull-requests-limit: 1
19-
versioning-strategy: increase
19+
versioning-strategy: increase
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: "daily"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Automerge Dependabot
2+
3+
on: pull_request
4+
5+
permissions: write-all
6+
7+
jobs:
8+
dependabot:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
steps:
12+
- name: Dependabot metadata
13+
id: metadata
14+
uses: dependabot/[email protected]
15+
with:
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
- name: Approve Dependabot PRs
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
- name: Enable auto-merge for Dependabot PRs
23+
run: gh pr merge --auto --squash "$PR_URL"
24+
env:
25+
PR_URL: ${{github.event.pull_request.html_url}}
26+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)