From 0e2268054731f470d1d9250d3fe9401a461469e8 Mon Sep 17 00:00:00 2001 From: OG T Date: Wed, 25 Mar 2026 21:46:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(cd):=20=E6=B8=85=E7=90=86=20worktree=20?= =?UTF-8?q?=E7=9B=AE=E9=8C=84=E9=81=BF=E5=85=8D=20submodule=20=E8=A1=9D?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deploy job 增加 rm -rf .claude/worktrees 清理步驟 解決 "no submodule mapping found" 錯誤 Co-Authored-By: Claude Opus 4.5 --- .github/workflows/cd.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 490c393b..e349a1dc 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -209,7 +209,12 @@ jobs: if: always() && (needs.build-api.result == 'success' || needs.build-api.result == 'skipped') && (needs.build-web.result == 'success' || needs.build-web.result == 'skipped') environment: production steps: + - name: Clean worktrees + run: rm -rf .claude/worktrees 2>/dev/null || true + - uses: actions/checkout@v4 + with: + clean: true - name: Setup run: |