Skip to content

Commit a50abb1

Browse files
authored
Create Dependabot Auto Approval Workflow (#1418)
* Create dependabot-auto-approve.yml * Refine Dependabot auto-approve workflow configuration * Update Dependabot fetch-metadata and auto-approve-action versions * Refactor auto-approve workflow conditions for Dependabot updates * chore: empty commit
1 parent ffa0899 commit a50abb1

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot Auto-Approve
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened, synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
auto-approve:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Fetch Dependabot metadata
15+
id: metadata
16+
continue-on-error: true
17+
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a
18+
19+
- name: Auto-approve minor and patch updates
20+
if: steps.metadata.outcome == 'success' && contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type)
21+
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363
22+
with:
23+
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)