Skip to content

Commit f6b8f45

Browse files
committed
Change Dependabot auto-merge pull request workflow
1 parent f551fe2 commit f6b8f45

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
name: Auto Merge Dependency Updates
1+
name: Dependabot auto-approve
2+
on: pull_request
23

3-
on:
4-
- pull_request_target
4+
permissions:
5+
pull-requests: write
56

67
jobs:
7-
run:
8+
dependabot:
89
runs-on: ubuntu-latest
10+
if: github.actor == 'dependabot[bot]'
911
steps:
10-
- name: Auto Merge Dependabot Updates
11-
uses: buluma/gh-action-auto-merge-dependabot-updates@1.0.8
12+
- name: Dependabot metadata
13+
id: metadata
14+
uses: dependabot/fetch-metadata@v2
1215
with:
13-
allowed-actors: dependabot-preview[bot], dependabot[bot]
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
- name: Approve a PR
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)