From 411cac4028e8559fd9a8e285920328c358a9ef8f Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Thu, 29 Jan 2026 12:28:59 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=A0=87=E7=AD=BE=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=8F=91=E5=B8=83=E8=A7=A6=E5=8F=91=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 auto-tag 工作流中添加对 [release ci] 提交消息的检查 - 仅当提交消息包含 [release ci] 时才执行标签创建 - 在发布工作流中启用自动生成发布说明功能 - 配置 GitHub Release 操作以自动生成版本发布说明 - [skip ci] --- .github/workflows/auto-tag.yml | 3 ++- .github/workflows/publish.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index fa036b7..1fb8e9a 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -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: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e625aee..ddef0f2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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