From 8646ca416210acd12618d31bffe4cb042b1c6607 Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 27 Aug 2025 00:25:35 +0800 Subject: [PATCH] [ci] Complete implementation of safe-to-fail CI steps (#5210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [ci] Make Playwright deploy step safe to fail Add continue-on-error: true to Deploy to Cloudflare Pages step to prevent Cloudflare API issues from blocking essential testing processes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * [ci] Make lint-and-format comment steps safe to fail Add continue-on-error: true to PR comment steps in lint workflow: - Comment on PR about auto-fix (line 63) - Comment on PR about manual fix needed (line 76) This prevents GitHub API permission errors from blocking essential linting processes while maintaining comment functionality. --------- Co-authored-by: Claude --- .github/workflows/lint-and-format.yaml | 2 ++ .github/workflows/test-ui.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/lint-and-format.yaml b/.github/workflows/lint-and-format.yaml index 5d9a50d83..d3b1635b2 100644 --- a/.github/workflows/lint-and-format.yaml +++ b/.github/workflows/lint-and-format.yaml @@ -60,6 +60,7 @@ jobs: - name: Comment on PR about auto-fix if: steps.verify-changed-files.outputs.changed == 'true' && github.event.pull_request.head.repo.full_name == github.repository + continue-on-error: true uses: actions/github-script@v7 with: script: | @@ -72,6 +73,7 @@ jobs: - name: Comment on PR about manual fix needed if: steps.verify-changed-files.outputs.changed == 'true' && github.event.pull_request.head.repo.full_name != github.repository + continue-on-error: true uses: actions/github-script@v7 with: script: | diff --git a/.github/workflows/test-ui.yaml b/.github/workflows/test-ui.yaml index a41964d7f..dff51c03e 100644 --- a/.github/workflows/test-ui.yaml +++ b/.github/workflows/test-ui.yaml @@ -182,6 +182,7 @@ jobs: - name: Deploy to Cloudflare Pages (${{ matrix.browser }}) id: cloudflare-deploy if: always() + continue-on-error: true run: | # Retry logic for wrangler deploy (3 attempts) RETRY_COUNT=0