Skip to content

Commit 0cf46e1

Browse files
authored
fix(renovate): fix regexManagers for tooling versions (#538)
1 parent c246e80 commit 0cf46e1

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

renovate.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,47 +35,53 @@
3535
"groupName": "frontend-e2e-against-stack dependencies"
3636
}
3737
],
38-
"regexManagers": [
38+
"customManagers": [
3939
{
40-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
40+
"customType": "regex",
41+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
4142
"matchStrings": ["DEFAULT_NODE_VERSION:\\s*\"(?<currentValue>\\d+)\""],
4243
"depNameTemplate": "node",
4344
"datasourceTemplate": "node-version",
44-
"replacementStringTemplate": "{{newMajor}}"
45+
"extractVersionTemplate": "^(?<version>\\d+)"
4546
},
4647
{
47-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
48+
"customType": "regex",
49+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
4850
"matchStrings": ["DEFAULT_GO_VERSION:\\s*\"(?<currentValue>\\d+\\.\\d+)\""],
4951
"depNameTemplate": "go",
5052
"datasourceTemplate": "golang-version",
51-
"replacementStringTemplate": "{{newMajor}}.{{newMinor}}"
53+
"extractVersionTemplate": "^(?<version>\\d+\\.\\d+)"
5254
},
5355
{
54-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
56+
"customType": "regex",
57+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
5558
"matchStrings": ["(?:DEFAULT_)?GOLANGCI_LINT_VERSION:\\s*\"(?<currentValue>[^\"]+)\""],
5659
"depNameTemplate": "golangci-lint",
5760
"packageNameTemplate": "golangci/golangci-lint",
5861
"datasourceTemplate": "github-releases",
5962
"extractVersionTemplate": "^v?(?<version>.*)$"
6063
},
6164
{
62-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
65+
"customType": "regex",
66+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
6367
"matchStrings": ["DEFAULT_TRUFFLEHOG_VERSION:\\s*\"(?<currentValue>[^\"]+)\""],
6468
"depNameTemplate": "trufflehog",
6569
"packageNameTemplate": "trufflesecurity/trufflehog",
6670
"datasourceTemplate": "github-releases",
6771
"extractVersionTemplate": "^v?(?<version>.*)$"
6872
},
6973
{
70-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
74+
"customType": "regex",
75+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
7176
"matchStrings": ["DEFAULT_MAGE_VERSION:\\s*\"(?<currentValue>[^\"]+)\""],
7277
"depNameTemplate": "mage",
7378
"packageNameTemplate": "magefile/mage",
7479
"datasourceTemplate": "github-releases",
7580
"extractVersionTemplate": "^v?(?<version>.*)$"
7681
},
7782
{
78-
"fileMatch": ["\\.github/workflows/.*\\.ya?ml$"],
83+
"customType": "regex",
84+
"managerFilePatterns": ["\\.github/workflows/.*\\.ya?ml$"],
7985
"matchStrings": ["ACTIONLINT_VERSION:\\s*\"(?<currentValue>[^\"]+)\""],
8086
"depNameTemplate": "actionlint",
8187
"packageNameTemplate": "rhysd/actionlint",

0 commit comments

Comments
 (0)