fromJSON

A workflow expression function that turns a JSON string into a real value, such as a list for a matrix.

In more detail

It is evaluated by GitHub before any shell runs. That is why it can build a matrix from a job output, which a shell variable never could.

Example

version: ${{ fromJSON(needs.versions.outputs.list) }}

Related terms

Taught in

References