Skip to content

Commit

Permalink
feat: Adding PipeScript Factor to Build Summary ( Fixes #914 )
Browse files Browse the repository at this point in the history
Writing as formula
  • Loading branch information
James Brundage committed Feb 19, 2024
1 parent fe27430 commit 400648b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/PipeScript/Export-PipeScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 400648b

Please sign in to comment.