File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -479,9 +479,17 @@ function Export-Pipescript {
479479 " $filesToBuildTotal in $ ( $BuildTime ) " | Out-Host
480480 " ::endgroup::Building PipeScripts [$FilesToBuildCount / $filesToBuildTotal ] : $ ( $buildFile.Source ) " | Out-Host
481481 if ($TotalInputFileLength ) {
482- $kbIn = $ ([Math ]::Round($TotalInputFileLength / 1 kb ))
483- $kbOut = $ ([Math ]::Round($TotalOutputFileLength / 1 kb ))
484- $pipeScriptFactor = $kbIn / $kbOut
482+ $kbIn = [Math ]::Round($TotalInputFileLength / 1 kb )
483+ $kbOut = [Math ]::Round($TotalOutputFileLength / 1 kb )
484+ $pipeScriptFactor = [Math ]::round([double ]$TotalOutputFileLength / [double ]$TotalInputFileLength , 4 )
485+
486+ if ($env: GITHUB_STEP_SUMMARY ) {
487+ @ (
488+ " <span style='font-size:1em'>$kbIn </span> generated <span style='font-size:$ ( $pipeScriptFactor / 2 ) em'>"
489+ " <span style='font-size:$ ( $pipeScriptFactor ) em'>PipeScript Factor : $pipeScriptFactor </span>"
490+ ) | Out-File - Append - FilePath $env: GITHUB_STEP_SUMMARY
491+ }
492+
485493 " $ ( [Math ]::Round($TotalInputFileLength / 1 kb )) kb input"
486494 " $ ( [Math ]::Round($TotalOutputFileLength / 1 kb )) kb output" ,
487495 " PipeScript Factor: X$ ( [Math ]::round([double ]$TotalOutputFileLength / [double ]$TotalInputFileLength , 4 )) "
You can’t perform that action at this time.
0 commit comments