diff --git a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 index d6d2a8ba1..4578b841c 100644 --- a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 +++ b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 @@ -75,14 +75,13 @@ if ($value -is [string]) { if (Test-Json $value -ErrorAction SilentlyContinue) { # Normalize valid JSON strings to a consistent format. - $value = ($value | ConvertFrom-Json) | ConvertTo-Json -Compress -Depth 100 + $value = ($value | ConvertFrom-Json) | ConvertTo-Json -Depth 100 } } else { # For non-string values, convert to JSON. - $value = $value | ConvertTo-Json -Compress -Depth 100 + $value = $value | ConvertTo-Json -Depth 100 } - $guid = [Guid]::NewGuid().ToString() $EOFMarker = "EOF_$guid" $outputLines += "$key<<$EOFMarker"