This commit is contained in:
parent
b70fb353cf
commit
0089f01a6d
@ -101,12 +101,13 @@ jobs:
|
||||
commit_message="${{ github.event.head_commit.message }}"
|
||||
title=$(echo "$commit_message" | cut -d ' ' -f 3-)
|
||||
if [ -z "$title" ]; then
|
||||
echo "未在提交信息中找到 Release 标题。"
|
||||
title="default_title"
|
||||
echo "未在提交信息中找到 Release 标题。"
|
||||
title="default_title"
|
||||
fi
|
||||
echo "::set-output name=title::$title" >> $GITHUB_OUTPUT
|
||||
# 使用新语法设置输出
|
||||
echo "title=$title" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: 最终Release信息
|
||||
- name: 获取最终Release信息
|
||||
run: |
|
||||
echo "Version = ${{ steps.extract_version.outputs.version }}"
|
||||
echo "Repo = ${{ github.server_url }}/${{ github.repository }}"
|
||||
|
Loading…
Reference in New Issue
Block a user