Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
e440530a
Commit
e440530a
authored
Dec 18, 2025
by
shaw
Browse files
fix: release error
parent
e2ae9fe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/release.yml
View file @
e440530a
...
...
@@ -85,11 +85,25 @@ jobs:
go-version
:
'
1.24'
cache-dependency-path
:
backend/go.sum
-
name
:
Fetch tags with annotations
run
:
|
# 确保获取完整的 annotated tag 信息
git fetch --tags --force
-
name
:
Get tag message
id
:
tag_message
run
:
|
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "Processing tag: $TAG_NAME"
# 获取完整的 tag message(跳过第一行标题)
TAG_MESSAGE=$(git tag -l --format='%(contents:body)' ${GITHUB_REF#refs/tags/})
TAG_MESSAGE=$(git tag -l --format='%(contents:body)' "$TAG_NAME")
# 调试输出
echo "Tag message length: ${#TAG_MESSAGE}"
echo "Tag message preview:"
echo "$TAG_MESSAGE" | head -10
# 使用 EOF 分隔符处理多行内容
echo "message<<EOF" >> $GITHUB_OUTPUT
echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT
...
...
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