ci: code-review checkout增加重试

This commit is contained in:
2026-07-20 19:57:13 +08:00
parent 151ec6e3d5
commit 5e1a0e0585
+5
View File
@@ -25,6 +25,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# 网络波动自动重试2次
retry:
max_attempts: 2
retry_on: error
- name: Install dependencies
run: |
@@ -64,3 +68,4 @@ jobs:
START_TIME=""
[ -f /tmp/ci_job_start_time ] && START_TIME=$(cat /tmp/ci_job_start_time)
python3 scripts/ci/ci_trace_report.py --service xiaoxia-saas-ci --status $STATUS --start-time "$START_TIME" || true