-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 735 Bytes
/
dependabot.yml
File metadata and controls
30 lines (26 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Dependabot Auto-Approve
on:
pull_request_target:
types: [opened, synchronize]
permissions:
contents: write
pull-requests: write
jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Auto-approve Dependabot PRs
uses: hmarr/auto-approve-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-merge:
runs-on: ubuntu-latest
needs: auto-approve
if: github.actor == 'dependabot[bot]'
steps:
- name: Auto-merge Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}