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:
Nulo 2021-09-19 08:02:24 -03:00 committed by GitHub
parent 427d26ebed
commit 8413bb0620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: