From c75255327aa66382d19581bf33fe52153ddc3bc8 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sat, 23 Aug 2025 13:28:55 +0800 Subject: [PATCH] [ci] Make Chromatic and Playwright comment steps safe to fail (#5156) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add continue-on-error: true to all PR comment steps in both chromatic.yaml and test-ui.yaml workflows to prevent GitHub API permission errors (403) from blocking essential CI processes. Changes: - chromatic.yaml: Added continue-on-error to 2 comment steps - test-ui.yaml: Added continue-on-error to 4 comment steps This ensures that visual testing (Chromatic) and browser testing (Playwright) continue to run even when PR commenting fails due to token permissions. Fixes #5149 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- .github/workflows/chromatic.yaml | 2 ++ .github/workflows/test-ui.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml index 558f04fee..03bfbc1f5 100644 --- a/.github/workflows/chromatic.yaml +++ b/.github/workflows/chromatic.yaml @@ -32,6 +32,7 @@ jobs: - name: Comment PR - Build Started if: github.event_name == 'pull_request' + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} @@ -68,6 +69,7 @@ jobs: - name: Comment PR - Build Complete if: github.event_name == 'pull_request' && always() + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/test-ui.yaml b/.github/workflows/test-ui.yaml index 45a84d23a..a41964d7f 100644 --- a/.github/workflows/test-ui.yaml +++ b/.github/workflows/test-ui.yaml @@ -47,6 +47,7 @@ jobs: - name: Comment PR - Tests Started if: github.event_name == 'pull_request' + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} @@ -134,6 +135,7 @@ jobs: - name: Comment PR - Browser Test Started if: github.event_name == 'pull_request' + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} @@ -238,6 +240,7 @@ jobs: - name: Comment PR - Browser Test Complete if: always() && github.event_name == 'pull_request' + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} @@ -323,6 +326,7 @@ jobs: fi - name: Comment PR - Tests Complete + continue-on-error: true uses: edumserrano/find-create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }}