Class WorkflowModel
Represents a workflow model, including its name, triggers, options, and jobs, used for generating CI/CD workflow files.
public sealed record WorkflowModel
- Inheritance
-
objectWorkflowModel
Constructors
WorkflowModel()
public WorkflowModel()
Properties
Jobs
Gets the jobs that define the sequence of tasks to be executed by the workflow.
public required IReadOnlyList<WorkflowJobModel> Jobs { get; init; }
Property Value
- IReadOnlyList<WorkflowJobModel>
Name
The name of the workflow.
public required string Name { get; init; }
Property Value
- string
Options
Gets the options that configure the workflow's behavior.
public required IReadOnlyList<IBuildOption> Options { get; init; }
Property Value
- IReadOnlyList<IBuildOption>
Remarks
Options can include input parameters, environment variables, or other settings.
Triggers
Gets the triggers that define when the workflow should be initiated.
public required IReadOnlyList<IWorkflowTrigger> Triggers { get; init; }
Property Value
- IReadOnlyList<IWorkflowTrigger>
Remarks
Examples include code pushes, pull requests, or scheduled events.