Steps.[step_id].outcome == 'failure' does not work #26732
-
Hi GitHub, This is a snippet from my job:
The result of the context dump is:
However, the third step (re run failed tests) won’t execute.
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
AqeelAT:
The documentation on status check functions says:
That’s why, you’ll need to add one of the other status check functions (I assume |
Beta Was this translation helpful? Give feedback.
-
Thank You! I had used failure before, but I added black and isort and I wanted them to fail the workflow if the PR wasn’t compliant with them, but I didn’t want the rerun failed tests step to execute (which would’ve happened with |
Beta Was this translation helpful? Give feedback.
The documentation on status check functions says:
That’s why, you’ll need to add one of the other status check functions (I assume
failure()
) to theif
condition.