Table of Contents

Class WorkflowParamInjection

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

A workflow option that injects a parameter value, produced by a workflow expression, into a target's step.

public sealed record WorkflowParamInjection : IBuildOption
Inheritance
object
WorkflowParamInjection
Implements

Examples

new WorkflowTargetDefinition(nameof(PushToNuget))
{
    Options = [BuildOptions.Inject.Param(nameof(NugetDryRun), "true")],
};

Remarks

Typically created via BuildOptions.Inject.Param(paramName, value). The injected value takes precedence over a value injected from the workflow environment for the same parameter.

Constructors

WorkflowParamInjection(string, Template)

A workflow option that injects a parameter value, produced by a workflow expression, into a target's step.

public WorkflowParamInjection(string ParamName, Template Value)

Parameters

ParamName string

The name of the parameter to inject.

Value Template

The expression that produces the parameter value in the workflow.

Examples

new WorkflowTargetDefinition(nameof(PushToNuget))
{
    Options = [BuildOptions.Inject.Param(nameof(NugetDryRun), "true")],
};

Remarks

Typically created via BuildOptions.Inject.Param(paramName, value). The injected value takes precedence over a value injected from the workflow environment for the same parameter.

Properties

ParamName

The name of the parameter to inject.

public string ParamName { get; init; }

Property Value

string

Value

The expression that produces the parameter value in the workflow.

public Template Value { get; init; }

Property Value

Template