diff --git a/.github/workflows/reusable-windows-ci.yml b/.github/workflows/reusable-windows-ci.yml index 4f315a288b7..5aa54bab58b 100644 --- a/.github/workflows/reusable-windows-ci.yml +++ b/.github/workflows/reusable-windows-ci.yml @@ -610,12 +610,15 @@ jobs: "::group::Crash dump files" gci $dumpfolder | Sort-Object LastWriteTime "::endgroup::" - + } + + if($failed) + { $msg = "$failed test(s) failed" "TestErrors=" + $msg | Out-File $Env:GITHUB_OUTPUT -Append Write-Error $msg; } - + # Avoid disturbing exit code 1 message $LASTEXITCODE=0