1 parent d50736a commit 270cc9fCopy full SHA for 270cc9f
1 file changed
.github/workflows/ci.yml
@@ -9,10 +9,11 @@ on:
9
permissions:
10
contents: read
11
12
-# main/master 使用发布锁,历史 run 的误重跑不能并发改 Release;其他 ref 只保留最新验证。
+# 所有 ref 统一:新提交到达即取消同 ref 在跑的旧 run。
13
+# main 的 publish 步骤有回滚 trap 兜底中断态,且发布头检查会拒绝过期 run。
14
concurrency:
- group: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && 'rolling-release' || format('ci-{0}', github.ref) }}
15
- cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
+ group: ${{ format('ci-{0}', github.ref) }}
16
+ cancel-in-progress: true
17
18
jobs:
19
verify:
0 commit comments