Skip to content

Commit d21614b

Browse files
committed
ci: ignore tag pushes in publish workflow
prevent duplicate triggers when pushing tags by ignoring tag events in the publish workflow, avoiding conflicts with release events the workflow will now only trigger on branch pushes and release events, not on tag pushes which previously caused duplicate builds 防止推送标签时重复触发,通过在发布工作流中忽略标签事件, 避免与发布事件冲突 工作流现在只会在分支推送和发布事件时触发,不会在标签推送时触发, 之前这会导致重复构建 Change-Id: I1680ac94358d513e52c76dbcc37786fc1cdb1fd9 Signed-off-by: OhYee <oyohyee@oyohyee.com>
1 parent 9b681cf commit d21614b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- '**'
8+
tags-ignore:
9+
- '**' # 忽略 tag push,避免与 release 事件重复触发
810

911
# GitHub Release 触发正式发布
1012
release:

0 commit comments

Comments
 (0)