mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-24 20:34:29 +08:00
chore(workflow): 更新自动标签工作流触发条件
- 修改触发条件以确保仅在 main 分支上运行 - 重构条件逻辑结构提高可读性 - 保持 workflow_run 和 workflow_dispatch 触发方式 - 添加适当的括号分组逻辑运算符
This commit is contained in:
parent
cdb7f32497
commit
342b4b5e88
17
.github/workflows/auto-tag.yml
vendored
17
.github/workflows/auto-tag.yml
vendored
@ -13,12 +13,17 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
auto-tag:
|
auto-tag:
|
||||||
if: >
|
if: >
|
||||||
(github.event_name == 'workflow_run' &&
|
github.ref == 'refs/heads/main' &&
|
||||||
github.event.workflow_run.conclusion == 'success' &&
|
(
|
||||||
github.event.workflow_run.head_branch == 'main' &&
|
(
|
||||||
contains(github.event.workflow_run.head_commit.message, '[release ci]'))
|
github.event_name == 'workflow_run' &&
|
||||||
||
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
(github.event_name == 'workflow_dispatch')
|
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