Skip to content

Commit ccbc65f

Browse files
uniqueckshoelzle
authored andcommitted
Build: Auto approve patch version Dependabot PRs
1 parent 3f185c5 commit ccbc65f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Dependabot auto-approve
2+
on: pull_request
3+
4+
permissions:
5+
pull-requests: write
6+
7+
jobs:
8+
get-metadata:
9+
uses: ./.github/workflows/dependabot-metadata.yml
10+
11+
dependabot:
12+
runs-on: ubuntu-latest
13+
needs: get-metadata
14+
steps:
15+
- name: Approve a PR
16+
if: needs.get-metadata.outputs.update-type == 'version-update:semver-patch'
17+
run: gh pr review --approve "$PR_URL"
18+
env:
19+
PR_URL: ${{ github.event.pull_request.html_url }}
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)