fix(ci): 修复when条件语法
ci/woodpecker/push/woodpecker Pipeline failed

问题:
- build-artifacts的when条件语法错误
- 导致步骤被取消

修复:
- 调整when条件的缩进和格式
This commit is contained in:
张翔
2026-03-29 17:53:24 +08:00
parent 2fab09a423
commit afc462c46c
+5 -4
View File
@@ -198,10 +198,11 @@ steps:
- /tmp/npm-cache:/root/.npm - /tmp/npm-cache:/root/.npm
- /tmp/node-modules-cache:/woodpecker/src/node_modules - /tmp/node-modules-cache:/woodpecker/src/node_modules
when: when:
- event: push event:
branch: - push
- release branch:
- release/** - release
- release/**
# ============================================ # ============================================
# 阶段4: 部署到生产环境 (release分支) # 阶段4: 部署到生产环境 (release分支)