3 Resources workflow
Forgejo Actions edited this page 2026-11-18 21:50:59 +00:00

xyops_workflow (Resource)

Manages a native workflow event (type=workflow, plugin=_workflow). This resource already supports workflow graphs; it is separate from xyops_event.

workflow preserves native trigger, event, job, controller, action and limit nodes, their data, connection conditions and extension fields. The provider validates graph structure, not a fixed action/controller vocabulary. Native execution semantics remain xyOps's responsibility. Coordinates and node identifiers are required; dangling connections fail validation on create and update. Loops are not prohibited by this generic resource.

Use params for workflow defaults and fields for declared runtime inputs. Omitted params, fields, notes and icon remain unmanaged; removing a previously configured value clears it. Import hydrates these values. Keep secrets out of parameters and graph JSON: these values are stored in OpenTofu state.

Deployment phases (artifact resolution, plan, apply, verification) are ordinary event/job nodes. Controllers provide decisions, joins and other native orchestration. Actions provide native notifications and suspension; no deployment-only action names are introduced.

Suspension is not a secure approval contract. Native suspend pauses a job; resume is authorised by xyOps job/category/target privileges and may change parameters. Manifest-bound approval, replay protection, immutable revisions and deployment policy belong to the runtime/CDK adapter. Action/limit nodes attach to jobs rather than acting as sequential pipeline stages. Use a native Join controller when all incoming branches must complete. Creating this resource does not execute or resume a workflow.

Schema

Required

  • title (String)
  • workflow (String)

Optional

  • actions (String) Native actions as JSON, including notification and suspend actions.
  • params (String) Workflow parameter defaults as a JSON object.
  • fields (String) Workflow input declarations as a JSON array.
  • notes (String) Workflow notes.
  • icon (String) Workflow icon.
  • category (String)
  • enabled (Boolean)
  • limits (String)
  • tags (List of String)
  • triggers (String)

Read-Only

  • id (String) The ID of this resource.

Import

Import by ID, e.g. tofu import xyops_workflow.<name> <id>.