Skip to content

Commit 5d0edf2

Browse files
ci: add dependabot automerge workflow (#118)
Co-authored-by: headless-samber <150833725+headless-samber@users.noreply.github.com>
1 parent 457cdc1 commit 5d0edf2

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: Dependabot automerge
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
automerge:
9+
runs-on: ubuntu-latest
10+
if: github.actor == 'dependabot[bot]'
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- name: Fetch Dependabot metadata
16+
id: metadata
17+
uses: dependabot/fetch-metadata@v3
18+
19+
- name: Enable auto-merge for github-actions updates
20+
if: steps.metadata.outputs.package-ecosystem == 'github_actions'
21+
run: gh pr merge --auto --squash "$PR_URL"
22+
env:
23+
PR_URL: ${{ github.event.pull_request.html_url }}
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+

0 commit comments

Comments
 (0)