@@ -943,22 +943,22 @@ For example, you can have a cleanup step that will run only if the workflow fail
943943{% highlight yaml %}
944944my_cleanup_step:
945945 title: My Pipeline Cleanup
946- when:
947- condition:
948- all:
949- myCondition: workflow.result == 'failure'
946+ when:
947+ condition:
948+ all:
949+ myCondition: workflow.result == 'failure'
950950{% endhighlight %}
951951
952952As another example we have a special step that will send an email if the pipeline succeeds or if load-tests fail:
953953
954954{% highlight yaml %}
955955my_email_step:
956956 title: My Email step
957- when:
958- condition:
959- any:
960- myCondition: workflow.result == 'success'
961- myTestCondition: steps.MyLoadTesting.result == 'failure'
957+ when:
958+ condition:
959+ any:
960+ myCondition: workflow.result == 'success'
961+ myTestCondition: steps.MyLoadTesting.result == 'failure'
962962{% endhighlight %}
963963
964964Notice that both examples assume that` fail_fast: false ` is at the root of the` codefresh.yaml ` file.