From d2c6964fd8dc095518b48d0951e97ecf71e6ea2f Mon Sep 17 00:00:00 2001 From: 7418 <7418@openclaw.ai> Date: Fri, 13 Feb 2026 01:47:43 +0800 Subject: [PATCH] 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 --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44b0bd4..245422f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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}" \