From fef6a53eb37d4230353116780847e70ffdc2d265 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 30 Jan 2025 22:48:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Fix=20conditional=20l?= =?UTF-8?q?ogic=20for=20test=20result=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index a8cf4df6..39d0bfda 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -52,8 +52,7 @@ if (($failedTests -gt 0) -or ($testResults.Result -ne 'Passed')) { Write-GitHubError "❌ Some [$failedTests] tests failed." Set-GitHubOutput -Name 'passed' -Value $false $return = 1 -} -if ($failedTests -eq 0) { +} elseif ($failedTests -eq 0) { Write-GitHubNotice '✅ All tests passed.' Set-GitHubOutput -Name 'passed' -Value $true $return = 0