Skip to content

Commit d2c6964

Browse files
7418claude
andcommitted
fix: CI changelog echo breaks on special chars in commit messages
Use heredoc instead of single-quoted echo to write changelog into release notes, preventing shell syntax errors from quotes/pipes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 11565de commit d2c6964

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ jobs:
202202
echo "" >> release-notes.md
203203
echo "| Commit | Description |" >> release-notes.md
204204
echo "|--------|-------------|" >> release-notes.md
205-
echo '${{ steps.changelog.outputs.changelog }}' >> release-notes.md
205+
cat >> release-notes.md << 'CHANGELOG_INLINE_EOF'
206+
${{ steps.changelog.outputs.changelog }}
207+
CHANGELOG_INLINE_EOF
206208
fi
207209
208210
gh release create "${GITHUB_REF_NAME}" \

0 commit comments

Comments
 (0)