Skip to content

Commit 7d4ac90

Browse files
chore: Update Renovate config (#6716)
Groups GitHub workflow updates and `uv.lock` refreshes in separate groups. Uses a regular expression to update Jinja workflow templates.
1 parent 984290d commit 7d4ac90

1 file changed

Lines changed: 30 additions & 16 deletions

File tree

renovate.json

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,29 @@
77
"uv.lock",
88
"scripts/split_tox_gh_actions/templates/test_group.jinja",
99
"scripts/split_tox_gh_actions/templates/test_orchestrator.jinja",
10-
".github/workflows/test.yml",
11-
".github/workflows/test-integrations-*.yml"
10+
".github/workflows/*.yml"
1211
],
1312
"lockFileMaintenance": {
1413
"enabled": true
1514
},
1615
"packageRules": [
1716
{
18-
"description": "Group package updates.",
17+
"description": "Disable pyproject.toml version updates.",
1918
"matchManagers": ["pep621"],
20-
"groupName": "Packages",
21-
"groupSlug": "packages",
22-
"separateMajorMinor": false,
23-
"separateMinorPatch": false,
24-
"separateMultipleMajor": false
19+
"matchUpdateTypes": ["major", "minor", "patch", "pin"],
20+
"enabled": false
2521
},
2622
{
27-
"description": "Group GitHub Actions updates.",
23+
"description": "Disable Ubuntu image updates.",
24+
"matchManagers": ["github-actions"],
25+
"matchDatasources": ["github-runners"],
26+
"enabled": false
27+
},
28+
{
29+
"description": "Group GitHub workflow updates.",
2830
"matchManagers": ["custom.regex", "github-actions"],
29-
"matchDatasources": ["github-tags"],
30-
"groupName": "GitHub Actions",
31-
"groupSlug": "github-actions",
31+
"groupName": "GitHub Workflows",
32+
"groupSlug": "github-workflows",
3233
"separateMajorMinor": false,
3334
"separateMinorPatch": false,
3435
"separateMultipleMajor": false
@@ -37,16 +38,29 @@
3738
"customManagers": [
3839
{
3940
"customType": "regex",
40-
"description": "Update GitHub Actions in test_group.jinja",
41+
"description": "Update GitHub Actions in templates.",
4142
"managerFilePatterns": [
4243
"/^scripts\\/split_tox_gh_actions\\/templates\\/(test_group|test_orchestrator)\\.jinja$/"
4344
],
4445
"matchStrings": [
45-
"(?<indent>\\s+(?:-\\s+)?uses:\\s+)(?<depName>[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+(?:\\/[A-Za-z0-9_.-]+)*)@(?<currentDigest>[a-f0-9]{40})\\s+#\\s+(?<currentValue>v?\\d+(?:\\.\\d+){0,2})"
46+
"(?<depName>[A-Za-z0-9-]+\\/[A-Za-z0-9_.-]+(?:\\/[A-Za-z0-9_.-]+)*)@(?<currentDigest>[a-f0-9]{40})[ \\t]+#[ \\t]+(?<currentValue>v?\\d+(?:\\.\\d+){0,2})"
4647
],
4748
"datasourceTemplate": "github-tags",
48-
"versioningTemplate": "semver-coerced",
49-
"autoReplaceStringTemplate": "{{{indent}}}{{{depName}}}@{{{newDigest}}} # {{{newValue}}}"
49+
"versioningTemplate": "github-actions",
50+
"autoReplaceStringTemplate": "{{{depName}}}@{{{newDigest}}} # {{{newValue}}}"
51+
},
52+
{
53+
"customType": "regex",
54+
"description": "Update (some) Docker images in templates.",
55+
"managerFilePatterns": [
56+
"/^scripts\\/split_tox_gh_actions\\/templates\\/test_group\\.jinja$/"
57+
],
58+
"matchStrings": [
59+
"(?<depName>ghcr\\.io\\/getsentry\\/image-mirror-library-[a-z0-9_.-]+):(?<currentValue>[A-Za-z0-9_.-]+)"
60+
],
61+
"datasourceTemplate": "docker",
62+
"versioningTemplate": "docker",
63+
"autoReplaceStringTemplate": "{{{depName}}}:{{{newValue}}}"
5064
}
5165
]
5266
}

0 commit comments

Comments
 (0)