From 400648be3855bec334ebce37e471d7ecea194d8d Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Mon, 19 Feb 2024 10:52:49 -0800 Subject: [PATCH] feat: Adding PipeScript Factor to Build Summary ( Fixes #914 ) Writing as formula --- Commands/PipeScript/Export-PipeScript.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/PipeScript/Export-PipeScript.ps1 b/Commands/PipeScript/Export-PipeScript.ps1 index a584ec13e..91044c04b 100644 --- a/Commands/PipeScript/Export-PipeScript.ps1 +++ b/Commands/PipeScript/Export-PipeScript.ps1 @@ -484,8 +484,8 @@ function Export-Pipescript { $pipeScriptFactor = [Math]::round([double]$TotalOutputFileLength/[double]$TotalInputFileLength,4) if ($env:GITHUB_STEP_SUMMARY) { - "> ${kbIn}kb Input, ${kbOut}kb : PipeScript Factor: $pipeScriptFactor" | - Out-File -Append -FilePath $env:GITHUB_STEP_SUMMARY + "> ${kbOut}kb Output / ${kbIn}kb Input = $pipeScriptFactor PipeScript Factor" | + Out-File -Append -FilePath $env:GITHUB_STEP_SUMMARY } "$([Math]::Round($TotalInputFileLength / 1kb)) kb input"