From fe44b624bd7c888c448facfd077d61b339848f0b Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Tue, 14 Jan 2025 14:27:43 +0100 Subject: [PATCH] add docs for continue-on-error: true for steps --- docs/user/actions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/user/actions.md b/docs/user/actions.md index c7397b95..cbcc7b38 100644 --- a/docs/user/actions.md +++ b/docs/user/actions.md @@ -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..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