Sets a single output value for GitHub Actions.
Writes the output to the GITHUB_OUTPUT file using @actions/core and returns the serialized value.
GITHUB_OUTPUT
@actions/core
The output name
The output value
The serialized output value
// In a GitHub Action environmentconst version = setOutput("version", "1.0.0");// Writes "version=1.0.0\n" to $GITHUB_OUTPUT// Returns "1.0.0" Copy
// In a GitHub Action environmentconst version = setOutput("version", "1.0.0");// Writes "version=1.0.0\n" to $GITHUB_OUTPUT// Returns "1.0.0"
Sets a single output value for GitHub Actions.
Writes the output to the
GITHUB_OUTPUTfile using@actions/coreand returns the serialized value.