Skip to content

Commit 74d65de

Browse files
grunchclaude
andcommitted
fix: Resolve GitHub Actions workflow changelog extraction issue
- Fix sed syntax error in Extract Changelog Content step - Replace problematic sed newline replacement with heredoc format - Use proper GitHub Actions multi-line output format - Resolve "Invalid format" error for changelog content This fixes the workflow failure where changelog content extraction was failing due to incorrect sed command syntax and improper multi-line content handling in GitHub Actions output. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent da4814e commit 74d65de

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,12 @@ jobs:
173173
174174
if [ -n "$CHANGELOG_CONTENT" ]; then
175175
echo "Found changelog content for version $VERSION"
176-
# Escape newlines and quotes for GitHub output
177-
CHANGELOG_CONTENT=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/"/\\"/g')
178-
echo "CHANGELOG_CONTENT=$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
176+
# Use heredoc format for multi-line output in GitHub Actions
177+
{
178+
echo "CHANGELOG_CONTENT<<EOF"
179+
echo "$CHANGELOG_CONTENT"
180+
echo "EOF"
181+
} >> $GITHUB_OUTPUT
179182
else
180183
echo "No changelog content found for version $VERSION"
181184
echo "CHANGELOG_CONTENT=" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)