Skip to content

Instance Property

when

Optional condition controlling whether the step runs.

let when: String?

Discussion

Reserved workflow tokens (e.g. {{version_changed}}) are substituted first, then the result is evaluated for truthiness (true/1/yes, case-insensitive). When non-nil and falsy, the step is skipped (recorded with status "skipped") and the workflow continues.