Release v1.8.3 测试生成readme.md
This commit is contained in:
parent
2a5dc32e95
commit
feebbfb297
@ -268,8 +268,11 @@ jobs:
|
||||
body=$(echo "$row" | jq -r '.body')
|
||||
published_at=$(echo "$row" | jq -r '.published_at')
|
||||
|
||||
# 将 ISO 8601 格式的时间转换为指定格式
|
||||
formatted_time=$(date -d "$published_at" +"Release at: %Y-%m-%d %H:%M:%S")
|
||||
|
||||
markdown_content+="## ${name} (${tag_name})\n"
|
||||
markdown_content+="**Published at**: ${published_at}\n\n"
|
||||
markdown_content+="${formatted_time}\n\n"
|
||||
markdown_content+="${body}\n\n"
|
||||
done < <(echo "$releases" | jq -c '.[]')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user