mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
Fix issue where json encoding is wrong in PS5 (#7538)
This commit is contained in:
committed by
GitHub
parent
8f4a9974b1
commit
e2166f086d
@@ -278,7 +278,7 @@ Function GenerateResourcesAndImage {
|
|||||||
$builderScriptPath_temp = $builderScriptPath.Replace(".json", "-temp.json")
|
$builderScriptPath_temp = $builderScriptPath.Replace(".json", "-temp.json")
|
||||||
$packer_script = Get-Content -Path $builderScriptPath | ConvertFrom-Json
|
$packer_script = Get-Content -Path $builderScriptPath | ConvertFrom-Json
|
||||||
$packer_script.builders | Add-Member -Name "azure_tags" -Value $Tags -MemberType NoteProperty
|
$packer_script.builders | Add-Member -Name "azure_tags" -Value $Tags -MemberType NoteProperty
|
||||||
$packer_script | ConvertTo-Json -Depth 3 | Out-File $builderScriptPath_temp
|
$packer_script | ConvertTo-Json -Depth 3 | Out-File -Encoding Ascii $builderScriptPath_temp
|
||||||
$builderScriptPath = $builderScriptPath_temp
|
$builderScriptPath = $builderScriptPath_temp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user