Category: Automation

GitHub Actions: Invalid format when writing GITHUB OUTPUT

Read this guide in Polish

Job ceases to work after writing a multi-line value to the output file.

How to identify the source of the problem

Check if the echo saves raw JSON from newline instead of compatible output syntax for multiple lines.

Check the workflow event type, permissions joba, run ID and first failed step.

Repair steps

Use supported delimiter syntax for multiline output or secure single line JSON.

How to Test Solution

Another steppe correctly reads full output without missing new line characters.

Security and restrictions

Apply minimum token privileges and re-impotence. Do not remove main branch protection only for the convenience of the machine.