Skip to content

Commit

Permalink
chore: configure renovate to update git hash
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Oct 15, 2023
1 parent 0224834 commit 3621d11
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":enablePreCommit"
],
"prHourlyLimit": 0,
"labels": [
"dependencies"
],
"packageRules": [
{
"matchDepTypes": [
"optionalDependencies"
],
"addLabels": [
"optional"
]
},
{
"matchFileNames": [
"\\.vcpkg\\.json$"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"digest"
]
}
],
"customManagers": [
{
"description": "Update vcpkg.json registration port with git hash",
"fileMatch": [
"\\.vcpkg\\.json$"
],
"matchStrings": [
"\\s+\"version-string\":\\s+\"(?<currentDigest>.*?)\"[, \\w\\W]+?\"homepage\":\\s+\"(?<packageName>.*?)\\/tree\\/(?<currentValue>.*?)\""
],
"depNameTemplate": "{{{packageName}}}",
"currentValueTemplate": "{{{currentValue}}}",
"datasourceTemplate": "git-refs",
"versioningTemplate": "git"
}
],
"timezone": "Asia/Shanghai"
}

0 comments on commit 3621d11

Please sign in to comment.