🔥 3-day streak
GitHub Actions (GH-200)54 / 142
Question 54 of 142

A build step in your workflow generates a multi-line changelog string that a later step in the same job must read as a single environment variable named CHANGELOG. Your teammate wrote the following and it fails because the runner interprets each line as a separate command: echo "CHANGELOG=$CHANGELOG_TEXT" >> "$GITHUB_ENV". What is the correct way to write a multi-line value to GITHUB_ENV?

Reviewed for accuracy · Report an issueNext question