GitHub Actions multiline output to GITHUB_OUTPUT without a delimiter
By Daniel Zoghalchali·Latchkey
Step outputs go to the GITHUB_OUTPUT file one entry per line. A multiline value written as "name=value" breaks the parser; multiline outputs need the heredoc delimiter form.
What this error means
A step that sets a multiline output fails with an invalid-format error, or downstream steps see an empty or truncated output.
github-actions
Error: Unable to process file command 'output' successfully.
Error: Invalid format 'line 2 of changelog'
Common causes
NAME=value used for multiline content
A value spanning multiple lines was written with "echo name=$value >> GITHUB_OUTPUT", which only supports single-line values.
How to fix it
Write the output with a heredoc delimiter
Use NAME<<DELIM ... DELIM to write multiline outputs.
Reference the output later via steps.<id>.outputs.<name>.