Treatment replicateContextsWithInputs

cicd/services/github::replicateContextsWithInputs


Configuration

⬡ action_contexts: javascript::JavaScriptEngine
⬡ main_contexts: javascript::JavaScriptEngine

Parameters

↳ var inputs: StringMap (std/data/string_map::StringMap)

Inputs

⇥ trigger: Block<void>

Outputs

↦ ready: Block<void>


Copy the GitHub Actions expression context from the main engine into an action-scoped engine and inject inputs.

Prepares action_contexts by first initialising it with an empty context, then extracting the github and runner objects from main_contexts and injecting them. Finally, inputs is evaluated through main_contexts (allowing expression expansion) and injected as the inputs variable in action_contexts.

This treatment is used to give GitHub Actions action implementations their own isolated engine pre-seeded with the parent workflow's context and the resolved step inputs. ready is emitted once both injections are complete.