Skip to content

Commit

Permalink
Updates renovate.conf
Browse files Browse the repository at this point in the history
- split regex matchers for use with and without 'v' prefix

Signed-off-by: Danny Eiselt <eiselt@b1-systems.de>
  • Loading branch information
DEiselt committed Oct 17, 2023
1 parent 1a010bd commit 44a39e2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,29 @@
"commitBody": "Signed-off-by: SCS Renovate Bot <renovatebot@scs.community>",
"gitAuthor": "SCS Renovate Bot <renovatebot@scs.community>",
"dependencyDashboard": "true",
"commitMessagePrefix": "renovate",
"enabledManagers": ["regex"],
"regexManagers":[
{
"description": "Regex used to match versions without prefix 'v'. Example: capi, capo.",
"fileMatch":[
"^terraform\\/variables.tf","^doc\\/configuration.md"
"^terraform\\/variables.tf","^doc\\/configuration.md","^terraform\\/environments\\/environment-default.tfvars"
],
"matchStrings":[
"default\\s*= \"(?<currentValue>.*?)\"\\s*# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\n",
".\\|\\s*`(?<currentValue>.*?)`\\s*<!-- renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) -->"
"`(?<currentValue>(\\d+\\.){1,2}(x|\\d+))`\\s*<!-- renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) -->",
"default\\s*= \"(?<currentValue>(\\d+\\.){1,2}(x|\\d+))\"\\s*# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\n"
],
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
"description": "Regex used to match versions with prefix 'v'. Example: calico.",
"fileMatch":[
"^terraform\\/variables.tf","^doc\\/configuration.md","^terraform\\/environments\\/environment-default.tfvars"
],
"matchStrings":[
"`(?<currentValue>v(\\d+\\.){1,2}(x|\\d+))`\\s*<!-- renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) -->",
"default\\s*= \"(?<currentValue>v(\\d+\\.){1,2}(x|\\d+))\"\\s*# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\n"
]
}
]
}

0 comments on commit 44a39e2

Please sign in to comment.