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