chore(workflow): 更新自动标签工作流以支持发布触发条件

- 在 auto-tag 工作流中添加对 [release ci] 提交消息的检查
- 仅当提交消息包含 [release ci] 时才执行标签创建
- 在发布工作流中启用自动生成发布说明功能
- 配置 GitHub Release 操作以自动生成版本发布说明
- [skip ci]
This commit is contained in:
GeWuYou 2026-01-29 12:28:59 +08:00
parent 9b77aa4b07
commit 411cac4028
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,8 @@ jobs:
auto-tag:
if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'main'
github.event.workflow_run.head_branch == 'main'&&
contains(github.event.workflow_run.head_commit.message, '[release ci]')
runs-on: ubuntu-latest
permissions:

View File

@ -132,6 +132,7 @@ jobs:
- name: Create GitHub Release and Upload Assets
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
name: "Release ${{ github.ref_name }}"
body: "Release created by CI for tag ${{ github.ref_name }} (package version ${{ steps.get_version.outputs.version }})"
draft: false