step output

A named value a step writes as key=value to the file named by GITHUB_OUTPUT, which later steps read through the steps context.

In more detail

The runner reads the file after the step finishes and offers each key as steps.<id>.outputs.<key>. The step needs an id for this to work, and if the step appends nothing the expression is simply empty.

Example

echo "tag=1.4.0" >> "$GITHUB_OUTPUT"

Related terms

Taught in

References

Certification courses