From b57c27899d5185a11c02ff4ab021fc74bc601000 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 6 Jun 2025 18:43:23 +0200 Subject: [PATCH 1/2] Dont compress the json from Set-GitHubOutput --- src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 index d6d2a8ba1..5d68560e8 100644 --- a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 +++ b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 @@ -75,11 +75,11 @@ 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 } From d8f20487492af8c3dbbd4760791e133fb0f2d3f0 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 6 Jun 2025 18:43:38 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A9=B9[Patch]:=20Remove=20unnecessary?= =?UTF-8?q?=20blank=20line=20in=20ConvertTo-GitHubOutput=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 index 5d68560e8..4578b841c 100644 --- a/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 +++ b/src/functions/private/Commands/ConvertTo-GitHubOutput.ps1 @@ -82,7 +82,6 @@ $value = $value | ConvertTo-Json -Depth 100 } - $guid = [Guid]::NewGuid().ToString() $EOFMarker = "EOF_$guid" $outputLines += "$key<<$EOFMarker"