Skip to content

Commit 83cb363

Browse files
uniqueckshoelzle
authored andcommitted
Build: Auto merge patch version Dependabot PRs
1 parent ccbc65f commit 83cb363

File tree

1 file changed

+21
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)