Skip to content

Commit 759cd17

Browse files
authored
Update renovate config to: (#139)
1. Updates GHA hashes in my workflows 2. Restricts hashes to GitHub release tags but uses the commit hash instead of the tag name 3. Has a cool off period of 1 month 4. Batches PRs and submits no more than 1 per week
1 parent 22627a1 commit 759cd17

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

renovate.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
3+
"extends": ["config:base"],
4+
5+
// (1) Update GitHub Actions refs + their pinned commit SHAs ("digests")
6+
"enabledManagers": ["github-actions"],
7+
"pinDigests": true,
8+
9+
// (3) Cool-off period ~ 1 month before proposing updates
10+
"stabilityDays": 30,
11+
12+
// (4) Batch updates and open at most 1 PR per week
13+
// Run only on Mondays, and keep only 1 PR open at a time.
14+
"schedule": ["on monday"],
15+
"prConcurrentLimit": 1,
16+
17+
// Make that one PR a batch
18+
"separateMajorMinor": false,
19+
"separateMinorPatch": false,
20+
21+
"packageRules": [
22+
{
23+
// (2) Only follow release-like tags (no branches like main/master)
24+
// Renovate will still pin the ref to the commit SHA because pinDigests=true.
25+
"matchManagers": ["github-actions"],
26+
"allowedVersions": "/^v?\\d+(?:\\.\\d+){0,2}$/",
27+
28+
// (4) Batch all GHA updates into the single weekly PR
29+
"groupName": "weekly-github-actions",
30+
"groupSlug": "weekly-github-actions"
31+
}
532
]
633
}

0 commit comments

Comments
 (0)