Fix updating default Umbraco version in templates

This commit is contained in:
Ronald Barendse
2022-02-24 11:37:22 +01:00
parent 05d606d6a7
commit 5a3578eca9

View File

@@ -407,11 +407,11 @@ stages:
$continuous = "$($version.release)-preview$date.$(Build.BuildId)"
$ubuild.SetUmbracoVersion($continuous)
# Update the version in templates
# Update the default Umbraco version in templates
$templatePaths = Get-ChildItem 'templates/**/.template.config/template.json'
foreach ($templatePath in $templatePaths) {
$a = Get-Content $templatePath -Raw | ConvertFrom-Json
$a.symbols.version.defaultValue = $continuous
$a.symbols.UmbracoVersion.defaultValue = $continuous
$a | ConvertTo-Json -Depth 32 | Set-Content $templatePath
}
}