Package io.typeflows.github.workflow
Class Workflow
-
- All Implemented Interfaces:
-
io.typeflows.fs.TypeflowsFSEntry,io.typeflows.util.Named,io.typeflows.util.Renderable
public final class Workflow extends TypeflowsFile<YamlContent>Represents a GitHub Actions workflow configuration.
A workflow is an automated procedure that you add to your repository. Workflows are defined by YAML files in the .github/workflows directory and consist of one or more jobs that can run on scheduled events, manual triggers, or in response to repository activity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkflow.DSLpublic final classWorkflow.Strategypublic classWorkflow.Inputspublic classWorkflow.Companion
-
Field Summary
Fields Modifier and Type Field Description public final StringdisplayNamepublic final List<Job>jobspublic final List<WorkflowTrigger>onpublic final Map<String, Object>envpublic final Defaultsdefaultspublic final Permissionspermissionspublic final Stringconcurrencypublic final Stringdescriptionprivate final Stringnamepublic final static Workflow.CompanionCompanion
-
Method Summary
Modifier and Type Method Description StringgetName()final StringsafeName()YamlContentrender()final static Workflowcreate(String filename, Configure<Workflow.DSL> block)Creates and configures a Workflow instance. final static Workflowcreate(String filename)Creates and configures a Workflow instance. -
Methods inherited from class io.typeflows.fs.TypeflowsFile
writeTo -
Methods inherited from class io.typeflows.util.Base
equals, hashCode, toString -
Methods inherited from class io.typeflows.fs.TypeflowsFSEntry
plus -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
render
YamlContent render()
-
create
@JvmOverloads() final static Workflow create(String filename, Configure<Workflow.DSL> block)
Creates and configures a Workflow instance.
- Parameters:
filename- The name of the workflow - appears as the YAML filename in .block- Configuration lambda to set up the workflow- Returns:
Configured Workflow instance
-
create
@JvmOverloads() final static Workflow create(String filename)
Creates and configures a Workflow instance.
- Parameters:
filename- The name of the workflow - appears as the YAML filename in .- Returns:
Configured Workflow instance
-
-
-
-