diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fe3f8a0..77562d8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -82,7 +82,16 @@ jobs: - run: uv run python manage.py bootstrap --username admin --organization CI env: BOOTSTRAP_PASSWORD: ${{ env.E2E_PASSWORD }} - - run: npx playwright install --with-deps chromium + - name: Install Playwright Chromium + run: | + for attempt in 1 2 3; do + npx playwright install --with-deps chromium && exit 0 + if [ "$attempt" -lt 3 ]; then + echo "::warning::Playwright 安装第 ${attempt} 次失败,15 秒后重试" + sleep 15 + fi + done + exit 1 - name: Browser regression shell: bash run: |