fix(ci): 清理 Runner diag logs 避免 "file already exists" 衝突
Pre-flight Check 加入清理步驟: - rm -f ~/actions-runner-awoooi/_diag/pages/*.log - rm -f ~/actions-runner-awoooi-2/_diag/pages/*.log 同時修復 CI 和 CD workflow Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
6
.github/workflows/cd.yaml
vendored
6
.github/workflows/cd.yaml
vendored
@@ -55,6 +55,12 @@ jobs:
|
||||
runs-on: [self-hosted, harbor, k8s]
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
# Phase 16: 清理 Runner diag logs 避免 "file already exists" 錯誤
|
||||
- name: Clean runner diag logs
|
||||
run: |
|
||||
rm -f ~/actions-runner-awoooi/_diag/pages/*.log 2>/dev/null || true
|
||||
rm -f ~/actions-runner-awoooi-2/_diag/pages/*.log 2>/dev/null || true
|
||||
|
||||
- name: "Check Required Secrets"
|
||||
run: |
|
||||
MISSING=""
|
||||
|
||||
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@@ -31,6 +31,12 @@ jobs:
|
||||
runs-on: [self-hosted, harbor, k8s]
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
# Phase 16: 清理 Runner diag logs 避免 "file already exists" 錯誤
|
||||
- name: Clean runner diag logs
|
||||
run: |
|
||||
rm -f ~/actions-runner-awoooi/_diag/pages/*.log 2>/dev/null || true
|
||||
rm -f ~/actions-runner-awoooi-2/_diag/pages/*.log 2>/dev/null || true
|
||||
|
||||
- name: Quick sanity check
|
||||
run: |
|
||||
echo "✅ Runner 可用"
|
||||
|
||||
Reference in New Issue
Block a user