Skip to content

Commit 959c1c8

Browse files
authored
fix: update readthedocs/action/preview GitHub Action in template (#975)
1 parent ac5866b commit 959c1c8

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.renovaterc.json

+12
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@
141141
]
142142
}
143143
},
144+
{
145+
"description": "Update readthedocs/actions/preview GitHub Action in template",
146+
"matchDepNames": [
147+
"readthedocs/actions"
148+
],
149+
"postUpgradeTasks": {
150+
"commands": [
151+
"find template -type f -exec sed -i 's|{{{depName}}}/preview@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g' {} +",
152+
"find template -type f -exec sed -i 's|{{{depName}}}/preview@{{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g' {} +"
153+
]
154+
}
155+
},
144156
{
145157
"description": "Update GitHub Runner in template",
146158
"matchDepTypes": [

template/.renovaterc.json.jinja

+12
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@
155155
]
156156
}
157157
},
158+
{
159+
"description": "Update readthedocs/actions/preview GitHub Action in template",
160+
"matchDepNames": [
161+
"readthedocs/actions"
162+
],
163+
"postUpgradeTasks": {
164+
"commands": [
165+
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}/preview@{{{currentDigest}}} # {{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}",
166+
"find template -type f -exec sed -i {{ '\'s|{{{depName}}}/preview@{{{currentValue}}}|{{{depName}}}/preview@{{{newDigest}}} # {{{newValue}}}|g\' {} +' }}"
167+
]
168+
}
169+
},
158170
{
159171
"description": "Update GitHub Runner in template",
160172
"matchDepTypes": [

0 commit comments

Comments
 (0)