Skip to content

Github action step hanging #25229

Discussion options

You must be logged in to vote

A run step on Linux runs in Bash, you can use the regular Bash mechanisms to handle commands and their exit codes however you want. Just mind that by default that Bash runs with set -e, so it will terminate on the first non-zero exit code that isn’t handled. “Handling” means e.g. using the command as an if condition:

if your-command; then
    echo "command succeeded"
else
    echo "command failed"
fi

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants