You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,8 @@ jobs:
136
136
# 读取发布说明(简化版本)
137
137
RELEASE_NOTES_FILE="RELEASE_NOTES_${TAG_NAME}.md"
138
138
if [ -f "$RELEASE_NOTES_FILE" ]; then
139
-
# 只提取标题行(以 # 或 - 开头),避免技术细节中的特殊字符
140
-
NOTES=$(grep -E '^(##|###|-\s+\*\*)' "$RELEASE_NOTES_FILE" | head -n 15 | sed 's/^##* //' | sed 's/\*\*//g' | sed 's/&/\&/g; s/</\</g; s/>/\>/g')
139
+
# 提取主要功能点(前20行)
140
+
NOTES=$(head -n 20 "$RELEASE_NOTES_FILE" | sed 's/^#//' | sed 's/"/\\"/g')
0 commit comments