fix(release): 统一使用版本号作为标题 (#481)
This commit is contained in:
1 parent
e9e88dce99
commit
a6d2e712ac
2 files changed
+8
-1
No files matched your search
@@ -1039,7 +1039,7 @@ jobs:
|
||||
if: ${{ needs.publication-preflight.outputs.write_mode == 'publish' }}
|
||||
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
|
||||
with:
|
||||
name: GPT-Load ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
target_commitish: ${{ github.sha }}
|
||||
draft: true
|
||||
prerelease: ${{ needs.validate-tag.outputs.prerelease }}
|
||||
|
||||
@@ -1303,6 +1303,13 @@ func TestReleaseWorkflowKeepsReleaseNotesConciseAndWarnsAboutDataIncompatibility
|
||||
releaseJob := workflowJobBlock(t, content, "publish-github")
|
||||
draftStep := workflowStepBlock(t, releaseJob, "Create or update GitHub Release draft")
|
||||
|
||||
if !strings.Contains(draftStep, "name: ${{ github.ref_name }}") {
|
||||
t.Fatalf("release draft title must be the tag version only:\n%s", draftStep)
|
||||
}
|
||||
if strings.Contains(draftStep, "name: GPT-Load ${{ github.ref_name }}") {
|
||||
t.Fatalf("release draft title must not include the product prefix:\n%s", draftStep)
|
||||
}
|
||||
|
||||
// generate_release_notes 已经从 commit 历史生成"本次变更"部分,手写 body
|
||||
// 只需要保留一次性读不到就可能造成数据损坏的警告,其余标准运维信息
|
||||
// (备份、tag 语义、usage 是 estimate 等)都是跨版本不变的事实,交给 README
|
||||
|
||||
Reference in new issue
Block a user