From fe2bfc7d5296ccb79f037ba26be9aea82f4e7984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwo=20Strzebo=C5=84ski?= Date: Thu, 29 Oct 2026 11:05:44 +0000 Subject: [PATCH] End the build step with exit 0 The deliberate no-argument smoke run exits 1 and PowerShell passes the last native exit code to the runner: run 414 compiled, passed its checks and was still marked failed. Co-Authored-By: Claude Sonnet 5.5 --- .gitea/workflows/discover-windows.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/discover-windows.yml b/.gitea/workflows/discover-windows.yml index f5854eb..17a15bf 100644 --- a/.gitea/workflows/discover-windows.yml +++ b/.gitea/workflows/discover-windows.yml @@ -159,6 +159,12 @@ jobs: Set-Content -Path dist\SHA256.txt -Value "$hash discover_printers.exe" -Encoding ASCII Write-Host "sha256 $hash" + # The usage run above exits 1 on purpose, and PowerShell hands the + # last native command's exit code to the runner when a script ends - + # so without this a build that passed every check was reported + # failed (run 414). + exit 0 + - name: Upload the executable uses: actions/upload-artifact@v3 with: