Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Apr 28, 2024
1 parent a279692 commit c48e6d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,32 +91,32 @@
"packageRules": [
{
"matchDepTypes": [
"action"
"github-runner"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i 's|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g' {} +",
"find template -type f -exec sed -i 's|{{{depName}}}@{{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g' {} +"
"find template -type f -exec sed -i 's|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g' {} +"
]
}
},
{
"matchDepTypes": [
"github-runner"
"matchManagers": [
"pre-commit"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i 's|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g' {} +"
"find template -type f -name '.pre-commit-config.yaml.jinja' -exec sed -i '/{{{replace \"/\" \"\\/\" depName}}}/{N;s/rev: {{{currentValue}}}/rev: {{{newValue}}}/}' {} +"
]
}
},
{
"matchManagers": [
"pre-commit"
"matchDepTypes": [
"action"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -name '.pre-commit-config.yaml.jinja' -exec sed -i '/{{{replace \"/\" \"\\/\" depName}}}/{N;s/rev: {{{currentValue}}}/rev: {{{newValue}}}/}' {} +"
"find template -type f -exec sed -i 's|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g' {} +",
"find template -type f -exec sed -i 's|{{{depName}}}@{{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g' {} +"
]
}
},
Expand Down
18 changes: 9 additions & 9 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -101,32 +101,32 @@
[%- if project_name == "Serious Scaffold Python" %]
{
"matchDepTypes": [
"action"
"github-runner"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}",
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}@{{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}"
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g\' {} +' }}"
]
}
},
{
"matchDepTypes": [
"github-runner"
"matchManagers": [
"pre-commit"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}-{{{currentValue}}}|{{{depName}}}-{{{newValue}}}|g\' {} +' }}"
"find template -type f -name '.pre-commit-config.yaml.jinja' -exec sed -i {{ '\'/{{{replace \\"/\\" \\"\\\\/\\" depName}}}/{N;s/rev: {{{currentValue}}}/rev: {{{newValue}}}/}\'' }} {} +"
]
}
},
{
"matchManagers": [
"pre-commit"
"matchDepTypes": [
"action"
],
"postUpgradeTasks": {
"commands": [
"find template -type f -name '.pre-commit-config.yaml.jinja' -exec sed -i {{ '\'/{{{replace \\"/\\" \\"\\\\/\\" depName}}}/{N;s/rev: {{{currentValue}}}/rev: {{{newValue}}}/}\'' }} {} +"
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}",
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}@{{{currentValue}}}|{{{depName}}}@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}"
]
}
},
Expand Down

0 comments on commit c48e6d0

Please sign in to comment.