fix(workflows): improve release notes handling in release-sdk.yml

- Use printf instead of echo for safer string output
- Remove --notes-start-tag as we use --notes-file for custom release notes

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mingholy.lmh 2026-02-22 12:36:45 +08:00
parent 8fe304c19b
commit bef3755ac2

View file

@ -363,13 +363,12 @@ jobs:
# Get previous release notes if available
PREVIOUS_NOTES=$(gh release view "sdk-typescript-${PREVIOUS_RELEASE_TAG}" --json body -q '.body' 2>/dev/null || echo 'See commit history for changes.')
echo "${PREVIOUS_NOTES}" >> "${NOTES_FILE}"
printf '%s\n' "${PREVIOUS_NOTES}" >> "${NOTES_FILE}"
# Create GitHub release
gh release create "sdk-typescript-${RELEASE_TAG}" \
--target "${TARGET}" \
--title "SDK TypeScript Release ${RELEASE_TAG}" \
--notes-start-tag "sdk-typescript-${PREVIOUS_RELEASE_TAG}" \
--notes-file "${NOTES_FILE}" \
${PRERELEASE_FLAG}