Skip to content

Commit 43df500

Browse files
authored
fix(renovate): use a dry-run when run from the merge group (#1097)
We've currently re-running Renovate for _any_ run in the merge group, which is making it push branches whenever anything is queued to be merged. This is causing way too many runs and unnecessary rebases and CI runs. We should only run in write mode on a schedule, on an explicit manual request, or from the main branch if Renovate's config itself changes
1 parent 8499a7f commit 43df500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/renovate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ jobs:
8383
renovate-version: 39.252.0@sha256:f244c095f6f698e1ced593a8521dd2cc78d22beeaf4fb009450fbc977a2c5b36
8484
token: ${{ steps.generate-token.outputs.token }}
8585
env:
86-
LOG_LEVEL: ${{ github.event_name == 'pull_request' && 'debug' || 'info' }}
86+
LOG_LEVEL: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'debug' || 'info' }}
8787
# For pull requests, this means we'll get the dependencies of the PR's
8888
# branch, so you can fix/change things and see the results in the PR's
8989
# run. By default, Renovate will clone the main/default branch.
9090
RENOVATE_BASE_BRANCHES: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || null }}
9191
# Dry run if the event is pull_request, or workflow_dispatch AND the dry-run input is true
92-
RENOVATE_DRY_RUN: ${{ (github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run == 'true')) && 'full' || null }}
92+
RENOVATE_DRY_RUN: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run == 'true')) && 'full' || null }}
9393
RENOVATE_PLATFORM: github
9494
RENOVATE_REPOSITORIES: ${{ github.repository }}
9595
RENOVATE_USERNAME: GrafanaRenovateBot

0 commit comments

Comments
 (0)