Skip to content

fix: use heredoc delimiter for multiline changelog_files output#74

Merged
Slokh merged 3 commits intomasterfrom
fix/multiline-changelog-output
Mar 18, 2026
Merged

fix: use heredoc delimiter for multiline changelog_files output#74
Slokh merged 3 commits intomasterfrom
fix/multiline-changelog-output

Conversation

@Slokh
Copy link
Contributor

@Slokh Slokh commented Mar 18, 2026

When a PR has multiple .changelog/*.md files, git diff --name-only returns multiple lines. Writing this directly with echo "changelog_files=$CHANGELOGS" breaks GITHUB_OUTPUT parsing — the second line is interpreted as an invalid output command.

Fixes: ##[error]Invalid format '.changelog/old-foxes-spin.md'

Uses the heredoc delimiter syntax instead.

Slokh and others added 2 commits March 17, 2026 17:45
When multiple changelog files exist, the output value contains newlines which breaks GITHUB_OUTPUT parsing. Use the heredoc delimiter syntax instead.

Amp-Thread-ID: https://ampcode.com/threads/T-019cfe65-d638-71a6-a5d2-796d1ebe5332
Co-authored-by: Amp <amp@ampcode.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
changelogs: patch
---

Fixed multiline changelog file output in the check action by using heredoc syntax for the `changelog_files` output variable.

Add changelog to commit this to your branch.

@Slokh Slokh merged commit 433ce44 into master Mar 18, 2026
3 checks passed
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.

1 participant