From f5ad1b2b31ae0e752970003f79c096b774aa0d99 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 28 Jul 2026 10:12:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8DCI=20Gate=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=97=B6=E8=BF=94=E5=9B=9Eexit=200=E8=80=8C=E9=9D=9Ee?= =?UTF-8?q?xit=201=E7=9A=84P0=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI Gate判断失败时脚本错误地写了exit 0,导致所有PR不管CI失败成什么样, Gate永远显示success,分支保护完全失效。 修复:将失败分支的exit 0改为exit 1 --- .gitea/workflows/ci-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 4d4e5b212..192bad25d 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -1805,7 +1805,7 @@ jobs: echo "❌ CI Gate: FAILED" echo "失败项: ${FAILED_ITEMS[*]}" echo "gate_result=failure" >> $GITHUB_OUTPUT - exit 0 + exit 1 fi - name: Report CI trace -- 2.54.0