Treatment prepareContexts

cicd/services/github::prepareContexts


Configuration

⬡ contexts: javascript::JavaScriptEngine

Parameters

↳ var github_contexts: string

Inputs

⇥ trigger: Block<void>

Outputs

↦ ready: Block<void>


Initialise the GitHub Actions expression context in a JavaScript engine.

Parses github_contexts as JSON and injects the standard GitHub Actions context variables (github, env, vars, job, jobs, steps, runner, secrets, strategy, matrix, needs, inputs) into the contexts engine, along with the always(), success(), failure(), and cancelled() helper functions.

ready is emitted once the context is fully initialised and the engine is ready for expression evaluation.