Skip to content

Commit acc7716

Browse files
🩹 [Patch]: Update check for step summary to use IsNullOrEmpty for clarity
1 parent 54a34ce commit acc7716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
shell: pwsh
5252
run: |
5353
$summary = Get-Content $env:GITHUB_STEP_SUMMARY -Raw
54-
if ($summary.Trim() -ne '') {
54+
if ([string]::IsNullOrEmpty($summary)) {
5555
throw "Step summary is not empty: $summary"
5656
}
5757
Write-Host "Step summary is empty as expected."

0 commit comments

Comments
 (0)