From d0a0c55aa64914f7ae9a9b78399c007b333dfb79 Mon Sep 17 00:00:00 2001 From: msclock Date: Tue, 12 Nov 2024 11:04:18 +0800 Subject: [PATCH] fix: only update github runner in template folder (#392) --- .renovaterc.json | 10 +++++----- template/.renovaterc.json.jinja | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.renovaterc.json b/.renovaterc.json index b3708c70..f27be5e3 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -15,9 +15,9 @@ "action" ], "postUpgradeTasks": { - "commands": [ - "find template -type f -exec sed -i -E 's/{{{replace \"/\" \"\\/\" depName}}}(.*)@{{{currentDigest}}} # {{{currentValue}}}/{{{replace \"/\" \"\\/\" depName}}}\\1@{{{newDigest}}} # {{{newValue}}}/g' {} +" - ] + "commands": [ + "find template -type f -exec sed -i -E 's/{{{replace \"/\" \"\\/\" depName}}}(.*)@{{{currentDigest}}} # {{{currentValue}}}/{{{replace \"/\" \"\\/\" depName}}}\\1@{{{newDigest}}} # {{{newValue}}}/g' {} +" + ] } }, { @@ -26,7 +26,7 @@ ], "postUpgradeTasks": { "commands": [ - "find template -type f -exec sed -i 's|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g' {} +" + "find template -type f -regex 'template/.*\\.github.*/workflows/.*' -exec sed -i 's|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g' {} +" ] } }, @@ -134,7 +134,7 @@ ] }, { - "description": " Update vcpkg.json builtin-baseline with git hash", + "description": "Update vcpkg.json builtin-baseline with git hash", "customType": "regex", "currentValueTemplate": "master", "datasourceTemplate": "git-refs", diff --git a/template/.renovaterc.json.jinja b/template/.renovaterc.json.jinja index 73eeb684..53be4af8 100644 --- a/template/.renovaterc.json.jinja +++ b/template/.renovaterc.json.jinja @@ -18,9 +18,9 @@ "action" ], "postUpgradeTasks": { - "commands": [ - "find template -type f -exec sed -i -E {{ '\'s/{{{replace \\"/\\" \\"\\\\/\\" depName}}}(.*)@{{{currentDigest}}} # {{{currentValue}}}/{{{replace \\"/\\" \\"\\\\/\\" depName}}}\\\\1@{{{newDigest}}} # {{{newValue}}}/g\' {} +' }}" - ] + "commands": [ + "find template -type f -exec sed -i -E {{ '\'s/{{{replace \\"/\\" \\"\\\\/\\" depName}}}(.*)@{{{currentDigest}}} # {{{currentValue}}}/{{{replace \\"/\\" \\"\\\\/\\" depName}}}\\\\1@{{{newDigest}}} # {{{newValue}}}/g\' {} +' }}" + ] } }, { @@ -29,7 +29,7 @@ ], "postUpgradeTasks": { "commands": [ - "find template -type f -exec sed -i {{ '\'s|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g\'' }} {} +" + "find template -type f -regex 'template/.*\\.github.*/workflows/.*' -exec sed -i {{ '\'s|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g\' {} +' }}" ] } }, @@ -148,7 +148,7 @@ ] }, { - "description": " Update vcpkg.json builtin-baseline with git hash", + "description": "Update vcpkg.json builtin-baseline with git hash", "customType": "regex", "currentValueTemplate": "master", "datasourceTemplate": "git-refs",