-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows CI does not respect failing exit code #617
Comments
But the above issue saying 42 will be 1, not 0. My workaround for pwsh exit code in another repository https://github.com/kachick/PSFzfHistory/blob/48bce024622c0837d7220dba5c37aad39e16651e/Taskfile.yml#L17-L19 |
Microsoft does much simple way 🙄 if ($LASTEXITCODE -ne 0) {
Write-Output "::error title=Go Generate::Error running go generate."
exit $LASTEXITCODE
} in all place It is described in https://stackoverflow.com/a/69616921 |
Hmm... simply adding does not fix. actions/runner-images#6668 |
Ah... it requires for each command, not for all run... 🙄 |
In summary, how to realize |
PSNativeCommandErrorActionPreference
|
Suggestion for that actions/runner-images#8900 |
💭 I had a typo, because of confusion against similar names.
|
actions/runner#351
I didn't notice some errors caused on this problem
https://github.com/kachick/dotfiles/actions/runs/9265658345/job/25488151731
This error continue the workflow
The text was updated successfully, but these errors were encountered: