fix(ci): deploy-staging 全栈 push 被错误 skip — success() 改 !cancelled() #1581

Merged
xiaoxia merged 1 commits from fix/deploy-staging-skip-bug into develop 2026-08-31 19:30:37 +08:00
+1 -3
View File
@@ -1145,9 +1145,7 @@ jobs:
- check-push-paths
- build-staging
- retag-staging-skipped
# 显式 success() 状态检查:上游 build/retag 被路径过滤 if 跳过(skipped)时不阻塞本 job
# 上游真正失败时仍然阻断(act_runner 对无状态函数的 if 隐式包 success(),纯 skipped 也会连带跳过)
if: success() && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'develop')
if: (!cancelled()) && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'develop')
steps:
- name: Checkout code
shell: sh