Skip to content

Commit fc263b2

Browse files
committed
feat(ci): add dependabot auto-merge for patch and minor updates
1 parent 1ddb812 commit fc263b2

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Linuxfabrik: Dependabot auto-merge'
2+
3+
on:
4+
pull_request: {}
5+
6+
permissions:
7+
contents: 'write'
8+
pull-requests: 'write'
9+
10+
jobs:
11+
auto-merge:
12+
runs-on: 'ubuntu-latest'
13+
if: 'github.actor == ''dependabot[bot]'''
14+
steps:
15+
16+
- uses: 'dependabot/fetch-metadata@v2'
17+
id: 'meta'
18+
19+
- if: >-
20+
steps.meta.outputs.update-type == 'version-update:semver-patch'
21+
|| steps.meta.outputs.update-type == 'version-update:semver-minor'
22+
run: 'gh pr merge --auto --squash "$PR_URL"'
23+
env:
24+
PR_URL: '${{ github.event.pull_request.html_url }}'
25+
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)