DRONE_FAILED_STEPS is empty for failure ignored steps

Is there a way to get all failed steps (including steps marked with failure:ignore)?

I would like to set a global pipeline state within the last step. Here is an example:

image .

In this case buildState should mark the pipeline as failed if there were errors in the steps ScriptAnalyzer or Pester. But the env var DRONE_FAILED_STEPS is empty.

DRONE_FAILED_STEPS is limited to steps that place the pipeline in a failing state. A step with failure: ignore does not place the pipeline in a failing state and is therefore not included in the DRONE_FAILED_STEPS environment variable.

Thanks for the response.
Is there any way to collect the all the failed steps and decide manually if the complete pipeline should be marked as failed?