diff --git a/.gitea/workflows/code-review.yml b/.gitea/workflows/code-review.yml index 07daa8bd5..b961b9971 100644 --- a/.gitea/workflows/code-review.yml +++ b/.gitea/workflows/code-review.yml @@ -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 +