Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
6af90be3
Unverified
Commit
6af90be3
authored
Dec 08, 2024
by
wukongdaily
Committed by
GitHub
Dec 08, 2024
Browse files
Update b.yml
parent
ca679353
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
.github/workflows/b.yml
.github/workflows/b.yml
+7
-1
No files found.
.github/workflows/b.yml
View file @
6af90be3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment