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 <noreply@anthropic.com>
This commit is contained in:
@@ -159,6 +159,12 @@ jobs:
|
|||||||
Set-Content -Path dist\SHA256.txt -Value "$hash discover_printers.exe" -Encoding ASCII
|
Set-Content -Path dist\SHA256.txt -Value "$hash discover_printers.exe" -Encoding ASCII
|
||||||
Write-Host "sha256 $hash"
|
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
|
- name: Upload the executable
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user