Skip to content

Commit

Permalink
fix: renovate config
Browse files Browse the repository at this point in the history
Add proper `extractVersion` regex.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Jan 24, 2023
1 parent 2d136f1 commit 09aa712
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Makefile"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.+?)\\s.*_VERSION\\s+\\?=\\s+(?<currentValue>.+)"
"# renovate: datasource=(?<datasource>.*?)(?:\\s+extractVersion=(?<extractVersion>.+?))?\\s+depName=(?<depName>.+?)\\s.*_VERSION\\s+\\?=\\s+(?<currentValue>.+)"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
Expand All @@ -25,14 +25,6 @@
"\\/\\/\\s+renovate: datasource=(?<datasource>.*?)(?:\\s+extractVersion=(?<extractVersion>.+?))?(?:\\s+versioning=(?<versioning>.+?))?\\s+depName=(?<depName>.+?)?\\s.*Version\\s+=\\s+\\\"(?<currentValue>.+?)\\\""
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"fileMatch": [
"Makefile"
],
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go",
"extractVersionTemplate": "^go(?<version>.*)$"
}
],
"packageRules": [
Expand All @@ -58,7 +50,7 @@
"matchPackageNames": [
"golang/go"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)"
},
{
"matchPackagePatterns": [
Expand Down

0 comments on commit 09aa712

Please sign in to comment.