Skip to content

Commit 40bfe7b

Browse files
committed
auto merge script
1 parent fde89d8 commit 40bfe7b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/auto-merge.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependabot Auto Merge
2+
3+
on:
4+
pull_request_target:
5+
types: [labeled]
6+
7+
jobs:
8+
auto:
9+
if: github.actor == 'dependabot[bot]'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
- name: Auto approve pull request, then squash and merge
16+
uses: ahmadnassri/action-dependabot-auto-merge@v2
17+
with:
18+
target: minor
19+
github-token: ${{ secrets.PAT_REPO_ADMIN }}

0 commit comments

Comments
 (0)