From f412b322f0c0747ebff092887498e4ecf3912b88 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 31 Aug 2026 22:42:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20actions/cache@v4=20=E5=8A=A0=20conti?= =?UTF-8?q?nue-on-error=E2=80=94=E2=80=94=E7=BC=93=E5=AD=98=E6=95=85?= =?UTF-8?q?=E9=9A=9C=E4=B8=8D=E9=98=BB=E6=96=AD=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 所有 5 个 actions/cache@v4 步骤加 continue-on-error: true: - validate-style pip cache - validate-security pip cache - validate-python pip cache - unit-tests pip cache - frontend-unit-test npm cache 当 Gitea Actions 缓存基础设施出现瞬态故障(git cache EOF / 归档损坏)时,cache restore 步骤会标黄但不中断 job, 后续的 pip install 重试逻辑自动 fresh download 兜底。 --- .gitea/workflows/ci-pipeline.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 25d1c61a3..2eec845f7 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -150,6 +150,7 @@ jobs: run: bash scripts/ci/step_timer_start.sh - name: Cache pip dependencies uses: actions/cache@v4 + continue-on-error: true with: path: /root/.cache/pip key: ${{ runner.os }}-pip-style-${{ hashFiles('requirements*.txt') }} @@ -252,6 +253,7 @@ jobs: run: bash scripts/ci/step_timer_start.sh - name: Cache pip dependencies uses: actions/cache@v4 + continue-on-error: true with: path: /root/.cache/pip key: ${{ runner.os }}-pip-security-${{ hashFiles('requirements*.txt') }} @@ -352,6 +354,7 @@ jobs: run: bash scripts/ci/step_timer_start.sh - name: Cache pip dependencies uses: actions/cache@v4 + continue-on-error: true with: path: /root/.cache/pip key: ${{ runner.os }}-pip-python-${{ hashFiles('requirements*.txt') }} @@ -456,6 +459,7 @@ jobs: run: bash scripts/ci/step_install_ffmpeg.sh - name: Cache pip dependencies uses: actions/cache@v4 + continue-on-error: true with: path: /root/.cache/pip key: ${{ runner.os }}-pip-unittests-${{ hashFiles('requirements*.txt') }} @@ -664,6 +668,7 @@ jobs: run: bash scripts/ci/step_timer_start.sh - name: Cache npm dependencies uses: actions/cache@v4 + continue-on-error: true with: path: /root/.npm key: ${{ runner.os }}-npm-vitest-${{ hashFiles('apps/web/package-lock.json') }} -- 2.54.0