mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 12:20:33 +00:00
Remove non-existent changed status condition from docs (#322)
* docs(status): rewrite status: changed doesn't exist in the current codebase and the description was just confusing. * Use consistent language Co-authored-by: Anbraten <anton@ju60.de> Co-authored-by: Nulo <git@nulo.in> Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
parent
427d26ebed
commit
8413bb0620
1 changed files with 1 additions and 12 deletions
|
@ -243,18 +243,7 @@ when:
|
|||
|
||||
### `status`
|
||||
|
||||
Execute a step when the build status changes:
|
||||
|
||||
```diff
|
||||
when:
|
||||
status: changed
|
||||
```
|
||||
|
||||
Woodpecker uses the container exit code to determine the success or failure status of a build. Non-zero exit codes fail the build and cause the pipeline to immediately exit.
|
||||
|
||||
There are use cases for executing pipeline steps on failure, such as sending notifications for failed builds. Use the status constraint to override the default behavior and execute steps even when the build status is failure:
|
||||
|
||||
Execute a step when the build is passing or failing:
|
||||
There are use cases for executing pipeline steps on failure, such as sending notifications for failed pipelines. Use the status constraint to execute steps even when the pipeline fails:
|
||||
|
||||
```diff
|
||||
pipeline:
|
||||
|
|
Loading…
Reference in a new issue