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>
This commit is contained in:
7418andClaude Opus 4.6 committed 2026-02-13 01:47:43 +08:00
1 parent 11565de083
commit d2c6964fd8
1 file changed
+3 -1
+3 -1
View File
@@ -202,7 +202,9 @@ jobs:
echo "" >> release-notes.md
echo "| Commit | Description |" >> release-notes.md
echo "|--------|-------------|" >> release-notes.md
echo '${{ steps.changelog.outputs.changelog }}' >> release-notes.md
cat >> release-notes.md << 'CHANGELOG_INLINE_EOF'
${{ steps.changelog.outputs.changelog }}
CHANGELOG_INLINE_EOF
fi
gh release create "${GITHUB_REF_NAME}" \