From d7df4c63d042e52ff75877c9d7b4b41dc05c2f79 Mon Sep 17 00:00:00 2001 From: LittleYellow Date: Sun, 26 Jul 2026 09:51:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BB=A5=20symlink=20=E5=B0=8D=E9=BD=8A?= =?UTF-8?q?=20prompt=20=E6=AA=94=E8=B7=AF=E5=BE=91=EF=BC=8C=E5=8F=96?= =?UTF-8?q?=E4=BB=A3=20RUNNER=5FTEMP=20=E8=A6=86=E5=AF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 job 層 RUNNER_TEMP=/tmp,改在 checkout 後把 /tmp/claude-prompts 連到 $RUNNER_TEMP/claude-prompts,讓寫入端與讀取端指向同一實體目錄, 並印出 RUNNER_TEMP 實際值輔助診斷。 Co-Authored-By: Claude Opus 5 --- .gitea/workflows/claude.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index 80a5b99..b4f0f31 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -12,12 +12,21 @@ on: jobs: claude-response: runs-on: yellow-zeabur-runner - env: - RUNNER_TEMP: /tmp steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: 對齊 prompt 檔案路徑 + run: | + echo "RUNNER_TEMP 實際值:[$RUNNER_TEMP]" + echo "目前工作目錄:$(pwd)" + # 讓寫入端($RUNNER_TEMP/claude-prompts)與讀取端(/tmp/claude-prompts)指向同一個實體目錄 + mkdir -p "${RUNNER_TEMP}/claude-prompts" + rm -rf /tmp/claude-prompts + ln -s "${RUNNER_TEMP}/claude-prompts" /tmp/claude-prompts + ls -la /tmp/claude-prompts + - uses: markwylde/claude-code-gitea-action@v1.0.20 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}