Treatment githubStringEval
cicd/services/github::githubStringEval
Configuration
⬡ contexts: javascript::JavaScriptEngine
Parameters
↳ var assume: bool = false
↳ var local_context: Json (json::Json)
Inputs
⇥ value: Block<string>
Outputs
↦ evaluated: Block<string>
Evaluate GitHub Actions expression syntax inside a single string.
The value string is scanned for ${{ … }} placeholders.
When assume is false (the default) every placeholder is resolved via the JavaScript engine.
When assume is true, a value without any placeholder is treated as a plain JavaScript expression
and evaluated directly.
evaluated receives the resolved string.
graph LR
T("githubStringEval()")
I["〈🟨〉"] -->|value| T
T -->|evaluated| O["〈🟨〉"]
style I fill:#ffff,stroke:#ffff
style O fill:#ffff,stroke:#ffff