Custom actions in YAML

View as Markdown

To add your action to the pipeline via YAML, follow the pattern below:

yaml
- action: "Pipeline_action_name"
  type: "CUSTOM"
  custom_type: "name:tag"

where action is the name the action is labeled with in the pipeline, and custom_type is the name of the custom action followed by the version:

  • latest - the definition from the HEAD of the default branch
  • a Git tag, e.g. v1.0 - the definition from the tagged commit

For example:

yaml
- action: "Worker scaling"
  type: "CUSTOM"
  custom_type: "workers_custom:latest"

The name in custom_type is not case-sensitive: workers_custom:latest and Workers_Custom:latest point to the same action.

Pinning a version

With latest, every run uses the current definition, so a new commit to the default branch changes the action in all pipelines that use it. To keep a pipeline on a known version, tag the commit and use the tag instead:

yaml
- action: "Worker scaling (pinned)"
  type: "CUSTOM"
  custom_type: "workers_custom:v1.0"

Pinned and latest versions of the same action can run side by side, even in one pipeline.

Filesystem and variable access

Two optional fields control what the action can reach in the pipeline:

Field Default Description
filesystem_access false Gives the action access to the pipeline filesystem. Required when the action definition has volume_mappings.
variables_access true Gives the action access to user-defined variables, e.g. pipeline variables. When false, these variables are empty in the action, while the default BUDDY_* variables stay available.
yaml
- action: "Write report"
  type: "CUSTOM"
  custom_type: "Write_Report:latest"
  filesystem_access: true
  variables_access: false
Warning
If the action definition has volume_mappings and the pipeline does not set filesystem_access: true, the pipeline cannot be saved (Filesystem access is required). See Filesystem & caching for a full example.
Success
Custom actions can also be used in remote pipeline configuration, just like every other action.

Last modified on Nov 6, 2026