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:
parent
73185bdfd1
commit
fe44b624bd
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
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
|
## Debugging workflows
|
||||||
|
|
||||||
### Errors in the YAML file
|
### Errors in the YAML file
|
||||||
|
|
Loading…
Add table
Reference in a new issue