Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit c7c6230

Browse files
committed
feat: add dependabot automerge
Signed-off-by: Robert Waffen <[email protected]>
1 parent 31b5e8e commit c7c6230

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,24 @@ jobs:
5454
name: Test suite
5555
steps:
5656
- run: echo Test suite completed
57+
58+
dependabot:
59+
permissions:
60+
contents: write
61+
name: 'Dependabot auto-merge'
62+
needs:
63+
- tests
64+
runs-on: ubuntu-latest
65+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
66+
steps:
67+
- name: Dependabot metadata
68+
id: metadata
69+
uses: dependabot/[email protected]
70+
with:
71+
github-token: '${{ secrets.GITHUB_TOKEN }}'
72+
73+
- name: Enable auto-merge for Dependabot PRs
74+
run: gh pr merge --auto --merge "$PR_URL"
75+
env:
76+
PR_URL: ${{github.event.pull_request.html_url}}
77+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)