mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Windows] Change file encoding to utf8 with no BOM (#11853)
* feat:Change utf8 with no bom * chore: replace WriteAllLines with WriteAllText
This commit is contained in:
@@ -44,4 +44,5 @@ $json = @"
|
|||||||
]
|
]
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$json | Out-File -FilePath $imageDataFile
|
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
|
||||||
|
[System.IO.File]::WriteAllText($imageDataFile, $json, $Utf8NoBomEncoding)
|
||||||
|
|||||||
Reference in New Issue
Block a user