Treatment githubMapEval
cicd/services/github::githubMapEval
Configuration
⬡ contexts: javascript::JavaScriptEngine
Parameters
↳ var assume: bool = false
↳ var local_context: Json (json::Json)
Inputs
⇥ map: Block<StringMap> (std/data/string_map::StringMap)
Outputs
↦ evaluated: Block<StringMap> (std/data/string_map::StringMap)
Evaluate GitHub Actions expression syntax inside a StringMap.
Each string value in map is scanned for ${{ … }} placeholders.
When assume is false (the default) every placeholder is resolved via the JavaScript engine.
When assume is true, values that contain no placeholder are treated as plain JavaScript expressions
and evaluated directly.
evaluated receives the updated map once all values have been resolved.
graph LR
T("githubMapEval()")
M["〈🟦〉"] -->|map| T
T -->|evaluated| O["〈🟦〉"]
style M fill:#ffff,stroke:#ffff
style O fill:#ffff,stroke:#ffff