diff --git a/.renovaterc.json b/.renovaterc.json index 67e8c527..cc1cd143 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -141,6 +141,18 @@ ] } }, + { + "description": "Update readthedocs/actions/preview GitHub Action in template", + "matchDepNames": [ + "readthedocs/actions" + ], + "postUpgradeTasks": { + "commands": [ + "find template -type f -exec sed -i 's|{{{depName}}}/preview@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g' {} +", + "find template -type f -exec sed -i 's|{{{depName}}}/preview@{{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g' {} +" + ] + } + }, { "description": "Update GitHub Runner in template", "matchDepTypes": [ diff --git a/template/.renovaterc.json.jinja b/template/.renovaterc.json.jinja index 3f61a8a8..aaa575b1 100644 --- a/template/.renovaterc.json.jinja +++ b/template/.renovaterc.json.jinja @@ -155,6 +155,18 @@ ] } }, + { + "description": "Update readthedocs/actions/preview GitHub Action in template", + "matchDepNames": [ + "readthedocs/actions" + ], + "postUpgradeTasks": { + "commands": [ + "find template -type f -exec sed -i {{ '\'s|{{{depName}}}/preview@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}", + "find template -type f -exec sed -i {{ '\'s|{{{depName}}}/preview@{{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}" + ] + } + }, { "description": "Update GitHub Runner in template", "matchDepTypes": [