Table of Contents

Class TargetStepCondition

Namespace
Invex.Atom.Workflows.Options
Assembly
Invex.Atom.Workflows.dll

A workflow option that gates execution of a target's individual step (rather than its whole job) on a platform-evaluated condition expression.

public sealed record TargetStepCondition : IBuildOption, IImplicitTargetDependencyOption
Inheritance
object
TargetStepCondition
Implements

Constructors

TargetStepCondition(BoolExpr)

A workflow option that gates execution of a target's individual step (rather than its whole job) on a platform-evaluated condition expression.

public TargetStepCondition(BoolExpr Condition)

Parameters

Condition BoolExpr

The condition expression to evaluate. May reference outputs of other targets via Invex.StructuredText.Expressions.JobOutputRef. Those targets are not added as dependencies: declare them with DependsOn, or workflow resolution logs a warning (the platform can only read outputs of jobs the conditioned job needs).

See Also

Properties

Condition

The condition expression to evaluate. May reference outputs of other targets via Invex.StructuredText.Expressions.JobOutputRef. Those targets are not added as dependencies: declare them with DependsOn, or workflow resolution logs a warning (the platform can only read outputs of jobs the conditioned job needs).

public BoolExpr Condition { get; init; }

Property Value

BoolExpr

TargetNames

Gets the names of targets whose outputs are referenced by Condition. Workflow resolution checks that each is a declared dependency of the conditioned target and logs a warning if not.

public IEnumerable<string> TargetNames { get; }

Property Value

IEnumerable<string>

See Also