Variable Interpolation Syntaxes
When writing interpolation placeholders in your source files, you can choose between the following syntax styles:
Syntax | Example |
---|---|
Shell-style | ${VAR_NAME} |
Handlebars-style | {{VAR_NAME}} |
GH Actions-style | ${{VAR_NAME}} |
All of them are supported at the same time, meaning you can have different placeholders written with different syntax styles even within the same source file.
NOTE
This tool does not mandate any additional requirement on the actual variables syntax:
- Variable names can include any allowed character and use any text case, e.g.:
${FOO}
,{{bar}}
,${{fooBar}}
- Whitespace inside brackets is ignored while capturing variable names, e.g.:
${ foo }
,{{foo }}
,${{ foo}}