Skip to content

Conversation

@tokio-on-jupiter
Copy link
Contributor

Summary

  • Fix GitHub Actions output for multiline JSON from lerna changed --json
  • Use heredoc delimiter syntax (<<EOF) for multiline output values

Problem

GitHub Actions $GITHUB_OUTPUT doesn't handle multiline values with simple echo. The JSON output from lerna contains newlines which caused: Invalid format ' {'

Test plan

@tokio-on-jupiter tokio-on-jupiter requested a review from a team as a code owner January 23, 2026 21:17
Copilot AI review requested due to automatic review settings January 23, 2026 21:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a GitHub Actions workflow issue where multiline JSON output from lerna changed --json was not being properly handled by $GITHUB_OUTPUT. The solution implements heredoc delimiter syntax to correctly capture multiline output values.

Changes:

  • Replaced single-line echo assignment with heredoc delimiter syntax (<<EOF) for the packages output variable
  • Added proper multiline handling to prevent "Invalid format" errors in GitHub Actions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tokio-on-jupiter tokio-on-jupiter merged commit c9566ce into main Jan 23, 2026
8 checks passed
@tokio-on-jupiter tokio-on-jupiter deleted the fix/canary-workflow-multiline-output branch January 23, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants