diff --git a/.renovaterc.json b/.renovaterc.json index 1311facf..715f802e 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -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", @@ -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\": \"(?.*?)\"" @@ -134,7 +125,8 @@ "datasourceTemplate": "git-refs", "depTypeTemplate": "vcpkg-baseline", "fileMatch": [ - "^vcpkg\\.json$" + "^vcpkg\\.json$", + "^template/vcpkg\\.json\\.jinja$" ], "matchStrings": [ "\"baseline\": \"(?.*?)\"[^}]+?\"repository\": \"(?.*?)\"" diff --git a/template/.renovaterc.json.jinja b/template/.renovaterc.json.jinja index c68ba6a5..dd7f33f5 100644 --- a/template/.renovaterc.json.jinja +++ b/template/.renovaterc.json.jinja @@ -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", @@ -132,6 +122,9 @@ "depTypeTemplate": "vcpkg-baseline", "fileMatch": [ "^vcpkg\\.json$" +[%- if repo_name == 'ss-cpp' %], + "^template/vcpkg\\.json\\.jinja$" +[%- endif %] ], "matchStrings": [ "\"builtin-baseline\": \"(?.*?)\"" @@ -145,6 +138,9 @@ "depTypeTemplate": "vcpkg-baseline", "fileMatch": [ "^vcpkg\\.json$" +[%- if repo_name == 'ss-cpp' %], + "^template/vcpkg\\.json\\.jinja$" +[%- endif %] ], "matchStrings": [ "\"baseline\": \"(?.*?)\"[^}]+?\"repository\": \"(?.*?)\""