mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
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:
parent
8fe304c19b
commit
bef3755ac2
1 changed files with 1 additions and 2 deletions
3
.github/workflows/release-sdk.yml
vendored
3
.github/workflows/release-sdk.yml
vendored
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue