Skip to content

expr

expr(strings: TemplateStringsArray, …values: unknown[]): string

Tagged template literal for GitHub Actions expressions.

Parameter Type

strings

TemplateStringsArray

values

unknown[]

string

step({ if_: expr`github.ref == 'refs/heads/main'` })
// produces: if: "${{ github.ref == 'refs/heads/main' }}"