Unverified Commit 6af90be3 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Update b.yml

parent ca679353
......@@ -78,7 +78,13 @@ jobs:
- name: Fetch and append info.md content to release body
id: fetch_info
run: |
# 获取 info.md 内容
info_md_content=$(curl -s https://raw.githubusercontent.com/wukongdaily/AutoBuild/master/info.md)
# 转义特殊字符:换行符、反引号等
info_md_content=$(echo "$info_md_content" | sed 's/[&/\]/\\&/g' | sed 's/\n/\\n/g')
# 输出获取到的内容并保存到环境变量
echo "Fetched content from info.md: $info_md_content"
echo "INFO_MD_CONTENT=$info_md_content" >> $GITHUB_ENV
......@@ -88,7 +94,7 @@ jobs:
with:
tag: ${{ env.TAG_NAME }}
name: "${{ env.RELEASE_DATE }} Build"
body: "${{ env.INFO_MD_CONTENT }}"
body: "${{ env.INFO_MD_CONTENT }}" # 在这里将 info.md 的内容作为 Release 的正文
draft: false
prerelease: false
generateReleaseNotes: false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment