ci: 以 symlink 對齊 prompt 檔路徑,取代 RUNNER_TEMP 覆寫
移除 job 層 RUNNER_TEMP=/tmp,改在 checkout 後把 /tmp/claude-prompts 連到 $RUNNER_TEMP/claude-prompts,讓寫入端與讀取端指向同一實體目錄, 並印出 RUNNER_TEMP 實際值輔助診斷。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,12 +12,21 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
claude-response:
|
claude-response:
|
||||||
runs-on: yellow-zeabur-runner
|
runs-on: yellow-zeabur-runner
|
||||||
env:
|
|
||||||
RUNNER_TEMP: /tmp
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- uses: markwylde/claude-code-gitea-action@v1.0.20
|
||||||
with:
|
with:
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user