Skip to content

Commit edacad4

Browse files
Add success indicator
1 parent e397d4e commit edacad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/main.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ $stats = [pscustomobject]@{
154154
Files = "$($codeCoverage.FilesAnalyzedCount) files"
155155
}
156156

157+
$success = $coveragePercent -ge $coveragePercentTarget
158+
$statusIcon = $success ? '' : ''
157159
$stats | Format-Table -AutoSize | Out-String
158160

159161
# Build HTML table for 'missed' commands
@@ -270,7 +272,7 @@ LogGroup 'Set step summary' {
270272
}
271273

272274
# -- Output the markdown to GitHub step summary --
273-
$markdown = Heading 1 'Code Coverage Report' {
275+
$markdown = Heading 1 "$statusIcon Code Coverage Report" {
274276

275277
Heading 2 'Summary' {
276278
Table {

0 commit comments

Comments
 (0)