terraform-provider-stackgen

sg_workflows (Data Source)

⚠️ Experimental — Lists Guild workflows in the organization. Each element has the same summary shape as data.sg_workflow. Tune limit / offset for pagination; latest_only defaults to true. Respects provider workspace_id for workspace scoping.

Example Usage

# When to use: List workflows in the org (paginate with limit/offset). Useful
# for CI checks that every expected playbook is approved.
data "sg_workflows" "latest" {
  latest_only    = true
  include_drafts = false
  limit          = 50
}

output "workflow_names" {
  value = [for w in data.sg_workflows.latest.workflows : w.name]
}

Schema

Optional

Read-Only

Nested Schema for workflows

Read-Only: