Skip to content

Commit 6d3dd73

Browse files
authored
Remove trailing space on each line for the yaml to avoid unnecessary PR (#22801)
1 parent c8f44ba commit 6d3dd73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/Github/ParseServiceContactsList.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,6 @@ $updatedJsonObjectGraph = [Newtonsoft.Json.JsonConvert]::DeserializeObject[Syste
126126
$yamlSerializer = [YamlDotNet.Serialization.SerializerBuilder]::new().Build()
127127
$updatedYamlContent = $yamlSerializer.Serialize($updatedJsonObjectGraph)
128128
$updatedYamlContent | Out-File -FilePath $yamlConfigPath -NoNewline -Force
129+
130+
# Remove trailing space on each line
131+
(Get-Content -Path $yamlConfigPath) | ForEach-Object { $_.TrimEnd() } | Set-Content -Path $yamlConfigPath

0 commit comments

Comments
 (0)