Skip to content

Commit cf6e867

Browse files
🩹 [Patch]: Update summary display logic to show summary based on failure status or success flag
1 parent bc91d83 commit cf6e867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/helpers/Build-PSModuleDocumentation.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
$failedCommands = $commandResults | Where-Object { $_.Status -eq 'Failed' }
9494
$successfulCommands = $commandResults | Where-Object { $_.Status -eq 'Success' }
9595
$hasFailures = $failedCommands.Count -gt 0
96-
$shouldShowSummary = $ShowSummaryOnSuccess
96+
$shouldShowSummary = $hasFailures -or $ShowSummaryOnSuccess
9797

9898
# Generate summary if ShowSummaryOnSuccess is enabled
9999
if ($shouldShowSummary) {

0 commit comments

Comments
 (0)