# \[SOLVED\]Run step when before step failure

**URL:** https://drone.discourse.group/t/solved-run-step-when-before-step-failure/9641
**Category:** Drone Support
**Created:** [December 17, 2018, 4:20am UTC](https://drone.discourse.group/t/solved-run-step-when-before-step-failure/9641 "2018-12-17T04:20:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lizheming](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lizheming/32/3688_2.png) [@lizheming](https://drone.discourse.group/u/lizheming)
#### Post date: [December 17, 2018, 4:20am UTC](https://drone.discourse.group/t/solved-run-step-when-before-step-failure/9641/1 "2018-12-17T04:20:13Z")

</div>

I have a notification step and I want to notifier me whenever build is success or failure. but I find when before step is fail, build pipeline will end and the last notify step will never run.

My `.drone.yml` config is [https://github.com/lizheming/drone-wechat/blob/master/.drone.yml](https://github.com/lizheming/drone-wechat/blob/master/.drone.yml)  
and this is the latest build link: [https://cloud.drone.io/lizheming/drone-wechat/6/1/4](https://cloud.drone.io/lizheming/drone-wechat/6/1/4)  
you can show last wechat step wasn’t run while before step is fail.

---

<div class="post-metadata">

### Author: ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)
#### Post date: [December 17, 2018, 3:29pm UTC](https://drone.discourse.group/t/solved-run-step-when-before-step-failure/9641/2 "2018-12-17T15:29:58Z")

</div>

see [https://docs.drone.io/user-guide/pipeline/conditions/#by-status](https://docs.drone.io/user-guide/pipeline/conditions/#by-status)

---

<div class="post-metadata">

### Author: ![lizheming](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lizheming/32/3688_2.png) [@lizheming](https://drone.discourse.group/u/lizheming)
#### Post date: [December 19, 2018, 2:53am UTC](https://drone.discourse.group/t/solved-run-step-when-before-step-failure/9641/3 "2018-12-19T02:53:26Z")

</div>

Thank you for your reply. I missed the last sentence so I misunderstand the default behavior.

> The default behavior is for pipeline steps to only execute when the pipeline is in a passing state.
