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 }}