update at 2025-10-15 15:41:17

This commit is contained in:
douboer
2025-10-15 15:41:17 +08:00
parent 4671f3f6ee
commit 7329a2f3da
3 changed files with 249 additions and 2 deletions

View File

@@ -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
}')