invoke

operator fun invoke(filename: String, displayName: String? = null, workflow: Workflow.() -> Unit = {}): Workflow

Creates and configures a Workflow instance with Kotlin DSL syntax.

Return

Configured Workflow instance

Parameters

filename

The name of the workflow - appears as the YAML filename in .github/workflows

workflow

Configuration lambda to set up the workflow