Skip to content

Commit 03ef741

Browse files
committed
CI: Enable automerge for dependabot/renovate
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
1 parent e98079c commit 03ef741

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,20 @@ jobs:
7373
uses: re-actors/alls-green@release/v1
7474
with:
7575
jobs: ${{ toJSON(needs) }}
76+
77+
automerge:
78+
name: Enable auto-merge
79+
if: github.event_name == 'pull_request' && (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]')
80+
needs:
81+
- tests
82+
runs-on: ubuntu-24.04
83+
permissions:
84+
contents: write
85+
pull-requests: write
86+
steps:
87+
- name: Enable auto-merge for PR
88+
env:
89+
GH_TOKEN: ${{ github.token }}
90+
PR_URL: ${{ github.event.pull_request.html_url }}
91+
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
92+
run: gh pr merge --auto --merge --match-head-commit "$PR_HEAD_SHA" "$PR_URL"

0 commit comments

Comments
 (0)