Schema reference
Complete CUE schema reference for workflow definitions.
Table of Contents
Workflow
Top-level workflow definition.
#Workflow: {
// Unique identifier for this workflow (required, non-empty)
// Forms part of the resource name: /workspaces/{workspace-id}/workflows/{id}
// Used when calling this workflow from other workflows
id: string & !=""
// Display name of the workflow (optional, non-unique)
// Used for UI display purposes only
name?: string
// Input parameters for the workflow (optional)
// Referenced in expressions using ${{ .inputs.<name> }}
inputs?: [string]: #Input
// Concurrency control for workflow execution (optional)
concurrency?: #Concurrency
// Trigger configuration defining when the workflow runs (optional)
trigger?: #Trigger
// Environment variables at workflow level (optional)
env?: [string]: string
// Secrets from H2O Secure Store (optional)
// Referenced in expressions using ${{ .secrets.<as> }}
secrets?: [...#Secret]
// Cancel all running jobs when any job fails (optional, defaults to true)
cancel_on_failure?: bool
// Map of jobs, keyed by job ID
jobs: [string]: #Job
}
See also: Workflow Structure