Skip to content

Steps.[step_id].outcome == 'failure' does not work #26732

Answered by airtower-luna
aqeelat asked this question in Actions
Discussion options

You must be logged in to vote
AqeelAT:

However, the third step (re run failed tests) won’t execute.

The documentation on status check functions says:

You can use the following status check functions as expressions in if conditionals. A default status check of success() is applied unless you include one of these functions.

That’s why, you’ll need to add one of the other status check functions (I assume failure()) to the if condition.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

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