This is an automated email from the ASF dual-hosted git repository.

lidongdai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new b6be54e82b [Fix][CI] Fix update build status action error (#9300)
b6be54e82b is described below

commit b6be54e82bcd26e6a56b0582e0279e96968e3c58
Author: Jia Fan <[email protected]>
AuthorDate: Sat May 10 11:53:39 2025 +0800

    [Fix][CI] Fix update build status action error (#9300)
---
 .github/workflows/update_build_status.yml | 48 +++++++++++++++++--------------
 1 file changed, 26 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/update_build_status.yml 
b/.github/workflows/update_build_status.yml
index afeb57d0e9..d6860fb3dc 100644
--- a/.github/workflows/update_build_status.yml
+++ b/.github/workflows/update_build_status.yml
@@ -77,29 +77,33 @@ jobs:
                       }
 
                       // Keep syncing the status of the checks
-                      if (run.data.status == 'completed') {
-                        console.log('    Run ' + cr.id + ': set status (' + 
run.data.status + ') and conclusion (' + run.data.conclusion + ')')
-                        const response = await github.request('PATCH 
/repos/{owner}/{repo}/check-runs/{check_run_id}', {
-                          owner: context.repo.owner,
-                          repo: context.repo.repo,
-                          check_run_id: cr.id,
-                          output: cr.output,
-                          status: run.data.status,
-                          conclusion: run.data.conclusion,
-                          details_url: run.data.details_url
-                        })
-                      } else {
-                        console.log('    Run ' + cr.id + ': set status (' + 
run.data.status + ')')
-                        const response = await github.request('PATCH 
/repos/{owner}/{repo}/check-runs/{check_run_id}', {
-                          owner: context.repo.owner,
-                          repo: context.repo.repo,
-                          check_run_id: cr.id,
-                          output: cr.output,
-                          status: run.data.status,
-                          details_url: run.data.details_url
-                        })
+                      try {
+                        if (run.data.status == 'completed') {
+                          console.log('    Run ' + cr.id + ': set status (' + 
run.data.status + ') and conclusion (' + run.data.conclusion + ')')
+                          const response = await github.request('PATCH 
/repos/{owner}/{repo}/check-runs/{check_run_id}', {
+                            owner: context.repo.owner,
+                            repo: context.repo.repo,
+                            check_run_id: cr.id,
+                            output: cr.output,
+                            status: run.data.status,
+                            conclusion: run.data.conclusion,
+                            details_url: run.data.details_url
+                          })
+                        } else {
+                          console.log('    Run ' + cr.id + ': set status (' + 
run.data.status + ')')
+                          const response = await github.request('PATCH 
/repos/{owner}/{repo}/check-runs/{check_run_id}', {
+                            owner: context.repo.owner,
+                            repo: context.repo.repo,
+                            check_run_id: cr.id,
+                            output: cr.output,
+                            status: run.data.status,
+                            details_url: run.data.details_url
+                          })
+                        }
+                      } catch (error) {
+                        console.error(error)
+                        continue
                       }
-
                       break
                     }
                   }

Reply via email to