Skip to content

Commit

Permalink
fix: only update github runner in template folder (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
msclock authored Nov 12, 2024
1 parent 6828cf7 commit d0a0c55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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' {} +"
]
}
},
{
Expand All @@ -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' {} +"
]
}
},
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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\' {} +' }}"
]
}
},
{
Expand All @@ -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\' {} +' }}"
]
}
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit d0a0c55

Please sign in to comment.