Skip to content

Commit c351fee

Browse files
authored
Merge pull request #6 from Wei18/feat/dependabot-auto-merge
Feat dependabot-auto-merge
2 parents c27e756 + e019efa commit c351fee

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ updates:
1313
- package-ecosystem: "gitsubmodule"
1414
directory: "/"
1515
schedule:
16-
interval: "weekly"
16+
interval: "daily"

.github/workflows/Dependabot.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
21
name: Dependabot update commit
32

43
on:
54
pull_request:
65
paths:
76
- 'Submodule/**'
8-
9-
jobs:
107

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
1113
Sync:
1214
if: github.actor == 'dependabot[bot]'
1315
strategy:
@@ -31,3 +33,10 @@ jobs:
3133
- run: touch Submodule
3234
- run: make install
3335
- run: git push
36+
- env:
37+
PR_URL: ${{github.event.pull_request.html_url}}
38+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
39+
run: |
40+
gh pr review --approve "$PR_URL"
41+
gh pr merge --auto --merge "$PR_URL"
42+

0 commit comments

Comments
 (0)