invoke

operator fun invoke(uses: String, name: String? = null, step: UseAction.() -> Unit = {}): UseAction

Creates and configures a UseAction instance with Kotlin DSL syntax.

Return

Configured UseAction instance

Parameters

uses

The action reference (e.g., 'actions/checkout@v4')

name

Optional name for the step (for logging and identification)

step

Configuration lambda to customize the step