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.

    • Constructor Detail

    • Method Detail

      • 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