Skip to content

Commit 5d7d5d1

Browse files
committed
chore: add Dependabot
1 parent ab5cbc6 commit 5d7d5d1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/dependabot.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: monthly

.github/workflows/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Dependabot
2+
3+
on: pull_request_target
4+
5+
jobs:
6+
auto_approve_pr:
7+
name: Auto-approve PR
8+
runs-on: ubuntu-latest
9+
if: github.actor == 'dependabot[bot]'
10+
11+
steps:
12+
- name: Approve a pull request
13+
run: gh pr review --approve "$PR_URL"
14+
env:
15+
PR_URL: ${{ github.event.pull_request.html_url }}
16+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)