From c897082a13927d826750dac3b1978dcc62846ed8 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 31 Aug 2026 19:52:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20check-push-paths=20=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=20checkout=20=E5=AF=BC=E8=87=B4=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #1577 移除了 check-push-paths 的 checkout 步骤提速, 但脚本仍用 bash scripts/ci/ci_push_paths.sh 引用本地文件, 导致 push pipeline 中 check-push-paths 失败, 进而 build-staging 全部 skipped,deploy-staging 无镜像可部署。 修复:改为 curl 下载脚本后执行,与其他无 checkout job 保持一致。 不影响 scripts/ci/ci_push_paths.sh 的内容(PR #1578 的修改保持不变)。 --- .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 2ccfecc2f..25d1c61a3 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -876,7 +876,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} run: | - bash scripts/ci/ci_push_paths.sh + curl -sfH "Authorization: token $GITHUB_TOKEN" -o /tmp/_ci_push_paths.sh "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/raw/scripts/ci/ci_push_paths.sh?ref=${GITHUB_SHA}" && bash /tmp/_ci_push_paths.sh - name: Report CI trace if: always() shell: sh -- 2.54.0