Skip to content

Commit

Permalink
Merge pull request #418 from msclock/renovate_vcpkg_baseline
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock authored Dec 11, 2024
2 parents 8ffcb54 + 6f750bd commit 20e1d81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
16 changes: 4 additions & 12 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@
]
}
},
{
"matchDepTypes": [
"vcpkg-baseline"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -name 'vcpkg.json.jinja' -exec sed -i 's|{{{currentDigest}}}|{{{newDigest}}}|g' {} +"
]
}
},
{
"description": "Group renovate docker tag and pre-commit-hooks tag",
"groupName": "renovate group",
Expand Down Expand Up @@ -121,7 +111,8 @@
"depNameTemplate": "https://github.com/microsoft/vcpkg",
"depTypeTemplate": "vcpkg-baseline",
"fileMatch": [
"^vcpkg\\.json$"
"^vcpkg\\.json$",
"^template/vcpkg\\.json\\.jinja$"
],
"matchStrings": [
"\"builtin-baseline\": \"(?<currentDigest>.*?)\""
Expand All @@ -134,7 +125,8 @@
"datasourceTemplate": "git-refs",
"depTypeTemplate": "vcpkg-baseline",
"fileMatch": [
"^vcpkg\\.json$"
"^vcpkg\\.json$",
"^template/vcpkg\\.json\\.jinja$"
],
"matchStrings": [
"\"baseline\": \"(?<currentDigest>.*?)\"[^}]+?\"repository\": \"(?<depName>.*?)\""
Expand Down
16 changes: 6 additions & 10 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@
]
}
},
{
"matchDepTypes": [
"vcpkg-baseline"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -name 'vcpkg.json.jinja' -exec sed -i {{ '\'s|{{{currentDigest}}}|{{{newDigest}}}|g\'' }} {} +"
]
}
},
[%- endif %]
{
"description": "Group renovate docker tag and pre-commit-hooks tag",
Expand Down Expand Up @@ -132,6 +122,9 @@
"depTypeTemplate": "vcpkg-baseline",
"fileMatch": [
"^vcpkg\\.json$"
[%- if repo_name == 'ss-cpp' %],
"^template/vcpkg\\.json\\.jinja$"
[%- endif %]
],
"matchStrings": [
"\"builtin-baseline\": \"(?<currentDigest>.*?)\""
Expand All @@ -145,6 +138,9 @@
"depTypeTemplate": "vcpkg-baseline",
"fileMatch": [
"^vcpkg\\.json$"
[%- if repo_name == 'ss-cpp' %],
"^template/vcpkg\\.json\\.jinja$"
[%- endif %]
],
"matchStrings": [
"\"baseline\": \"(?<currentDigest>.*?)\"[^}]+?\"repository\": \"(?<depName>.*?)\""
Expand Down

0 comments on commit 20e1d81

Please sign in to comment.