Treatment runAction

cicd/services/github::runAction


Configuration

⬡ contexts: javascript::JavaScriptEngine

Parameters

↳ var commands: string
↳ var continue_on_error: Option<string> = _
↳ var display_name: Option<string> = _
↳ var env: Option<StringMap> = _ (std/data/string_map::StringMap)
↳ var id: Option<string> = _
↳ var if: Option<string> = _
↳ var local_context: Option<string> = _
↳ var name: string
↳ var shell: Option<string> = _
↳ var working_directory: Option<string> = _

Inputs

⇥ trigger: Block<void>

Outputs

↦ completed: Block<void>
↦ continue: Block<void>
↦ failed: Block<void>


Run a single GitHub Actions step as a Mélodium treatment.

Evaluates GitHub Actions expression syntax in commands, env, shell, working_directory, if, and continue_on_error against the provided JavaScript contexts.

  • name: step identifier used for labelling and outputs.
  • display_name: optional human-readable label shown in logs (falls back to name).
  • commands: the shell script or command string to run (supports ${{ }} expressions).
  • env: optional additional environment variables (merged with GitHub env-file variables).
  • working_directory, shell: optional overrides evaluated via expression.
  • if: optional expression that gates execution; the step is skipped if it evaluates to false.
  • continue_on_error: when true-ish, a non-zero exit emits continue instead of failed.
  • local_context: optional JSON object merged into the expression context.

completed is emitted on successful exit; failed on error; continue when continue_on_error is set and the step fails.