update at 2025-10-15 15:41:17
This commit is contained in:
@@ -175,13 +175,15 @@ fi
|
||||
|
||||
# 7.2 使用 jq 生成正确的 JSON
|
||||
# 首先尝试使用原始内容(中文)
|
||||
JSON_PAYLOAD=$(echo "$TAG_MESSAGE" | jq -R -s -c \
|
||||
# 使用 --arg 参数来正确处理多行文本,避免 \n 转义问题
|
||||
JSON_PAYLOAD=$(jq -n -c \
|
||||
--arg version "$VERSION" \
|
||||
--arg title "$VERSION - $RELEASE_TITLE" \
|
||||
--arg body "$TAG_MESSAGE" \
|
||||
'{
|
||||
tag_name: $version,
|
||||
name: $title,
|
||||
body: .,
|
||||
body: $body,
|
||||
draft: false,
|
||||
prerelease: false
|
||||
}')
|
||||
|
||||
Reference in New Issue
Block a user