mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 04:59:01 +08:00
chore(workflow): 更新自动标签工作流配置
- 修改触发条件以支持手动调度 - 重构条件判断逻辑提高可读性 - 保持原有自动化标签功能不变 - 添加对 workflow_dispatch 事件的支持
This commit is contained in:
parent
487f55fef6
commit
cdb7f32497
12
.github/workflows/auto-tag.yml
vendored
12
.github/workflows/auto-tag.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
workflows: ["CI - Build & Test"]
|
workflows: ["CI - Build & Test"]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
workflow_dispatch:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: auto-tag-main
|
group: auto-tag-main
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
@ -13,10 +13,12 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
auto-tag:
|
auto-tag:
|
||||||
if: >
|
if: >
|
||||||
github.event.workflow_run.conclusion == 'success' &&
|
(github.event_name == 'workflow_run' &&
|
||||||
github.event.workflow_run.head_branch == 'main'&&
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
contains(github.event.workflow_run.head_commit.message, '[release ci]')
|
github.event.workflow_run.head_branch == 'main' &&
|
||||||
|
contains(github.event.workflow_run.head_commit.message, '[release ci]'))
|
||||||
|
||
|
||||||
|
(github.event_name == 'workflow_dispatch')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user