fix(release): cleanup 改 always()——release 失败时失败记录更要清理
sdk-ci / test (push) Successful in 1m44s

This commit is contained in:
iceking2nd committed 2026-11-10 10:33:02 +08:00
1 parent f47fe893f1
commit 7bfd44b588
1 file changed
+2 -2
+2 -2
View File
@@ -39,10 +39,10 @@ jobs:
"${API}/repos/${REPO}/releases" >/dev/null
echo "Release ${VERSION} 创建完成(go get 引用即发版本体)"
# 发版成功后清理失败的 action 记录
# 清理失败的 action 记录——always():release 失败时更要清理(否则失败轮次永久堆积)
cleanup:
needs: release
if: success()
if: always()
runs-on: ubuntu-latest
steps:
- name: 清理失败的 workflow runs