Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/docs/20-usage/20-workflow-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,14 @@ when:

#### `status`

There are use cases for executing steps on failure, such as sending notifications for failed workflow/pipeline. Use the status constraint to execute steps even when the workflow fails:
By default, steps only run when the workflow has succeeded up to that point,<br>
which is equivalent to `status: [ success ]`.
Comment thread
qwerty287 marked this conversation as resolved.

The `status` filter lets you override this behavior.
The only accepted values are `success` and `failure`.

A common use case is executing a step on failure, such as sending notifications for a failed workflow/pipeline.
To run a step regardless of outcome, list both values:

```diff
steps:
Expand Down