Hello! I have a step that I would like to re-run on when: on_fail, however it looks like the run parameter only takes in command line statements.
https://circleci.com/docs/2.0/configuration-reference/#run
Is there a way to tell this job to run a step called “failed-notifcation” if any of the steps fail?
jobs:
build-test:
docker:
- image: cimg/python:3.8.6
steps:
- checkout
- some-step
- success_notification
- run:
name: Failure
command: "failed_notification_step"
when: on_fail