expr
expr(
strings:TemplateStringsArray, …values:unknown[]):string
Tagged template literal for GitHub Actions expressions.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
… |
|
Returns
Section titled “Returns”string
Example
Section titled “Example”step({ if_: expr`github.ref == 'refs/heads/main'` })// produces: if: "${{ github.ref == 'refs/heads/main' }}"