Template shape
Create a.yml file in your registry templates directory. Define inputs in expects, run actions in steps, and return the final value from returns.
- Start every file with
type: action. - Use
tools.<integration>for the namespace. - Set
title,description,display_group,namespace, andnameindefinition. - Define inputs in
expects. - Build the action in
steps. - Return the final value from
returns.
Expressions
Use${{ }} for expressions.
Use inputs to read the inputs you defined in expects.
Use steps to read the result of an earlier step. After a step runs, its output is available at steps.<ref>.result.
Read an input
Read an earlier step result
Build one step from another
inputsstepsSECRETSVARSFN.*
Limitations
- Template steps only support
ref,action, andargs. - Template steps run in order.
- Template steps do not support
run_if,for_each,join_strategy,start_delay,timeout, ormax_attempts. - Templates can call tools actions, other templates, and
core.script.run_python. Other platform actions are not supported inside templates. - If a later step fails, you do not get a final result with earlier step outputs. Keep templates short. In practice, do not build templates with more than 2 steps.