Skip to content

Github action job doesn't fail on exit status 1 #26737

Answered by TheOnlyWei
TheOnlyWei asked this question in Actions
Discussion options

You must be logged in to vote

The issue turned out to be that I needed to obtain the last exit code from the calling application, which is PowerShell Core, and check the exit code and if it is non-zero, throw an error from that calling application in PowerShell core, otherwise Github Actions won’t register it as an error.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eugbyte
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants