mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
chore(workflow): 更新自动标签工作流以支持发布触发条件
- 在 auto-tag 工作流中添加对 [release ci] 提交消息的检查 - 仅当提交消息包含 [release ci] 时才执行标签创建 - 在发布工作流中启用自动生成发布说明功能 - 配置 GitHub Release 操作以自动生成版本发布说明 - [skip ci]
This commit is contained in:
parent
9b77aa4b07
commit
411cac4028
3
.github/workflows/auto-tag.yml
vendored
3
.github/workflows/auto-tag.yml
vendored
@ -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:
|
||||
|
||||
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user