0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-02-01 03:35:03 -05:00

add docs for continue-on-error: true for steps

This commit is contained in:
Robert Wolff 2025-01-14 14:27:43 +01:00 committed by Earl Warren
parent 73185bdfd1
commit fe44b624bd

View file

@ -1108,6 +1108,17 @@ the path to the executable file to run.
Set environment variables like it's [top-level variant `env`](#env-2), but only for the current step.
### `jobs.<job_id>.steps[*].continue-on-error`
If it is set to `true` for a step the following steps continue to run independent of its failure or success. Also, the job has successful state.
```yaml
steps:
- run: echo "failing step" && false
continue-on-error: true
- run: echo "this step runs and job is successful"
```
## Debugging workflows
### Errors in the YAML file