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

gaojun2048 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 f19a9b5976 [INFRA] Add log for notify_test_workflow.yml to trace error 
reason
f19a9b5976 is described below

commit f19a9b5976c195a997e24f353032b0fad0d3d5ac
Author: Jia Fan <[email protected]>
AuthorDate: Tue Sep 19 18:07:13 2023 +0800

    [INFRA] Add log for notify_test_workflow.yml to trace error reason
---
 .github/workflows/notify_test_workflow.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/notify_test_workflow.yml 
b/.github/workflows/notify_test_workflow.yml
index 1fcd1427ba..d283ac9376 100644
--- a/.github/workflows/notify_test_workflow.yml
+++ b/.github/workflows/notify_test_workflow.yml
@@ -75,7 +75,7 @@ jobs:
             const name = 'Build'
             const head_sha = context.payload.pull_request.head.sha
             let status = 'queued'
-            console.log('runs: ' + runs)
+            console.log('runs: ' + JSON.stringify(runs))
             if (!runs || runs.data.workflow_runs.length === 0) {
               status = 'completed'
               const conclusion = 'action_required'
@@ -116,8 +116,10 @@ jobs:
 
               // Here we get check run ID to provide Check run view instead of 
Actions view, see also SPARK-37879.
               const check_runs = await github.request(check_run_endpoint, 
check_run_params)
+              console.log('check_runs: ' + JSON.stringify(check_runs))
               const check_run_head = check_runs.data.check_runs.filter(r => 
r.name === "Run / License header")[0]
 
+              console.log('check_run_head: ' + JSON.stringify(check_run_head))
               if (check_run_head.head_sha != 
context.payload.pull_request.head.sha) {
                 throw new Error('There was a new unsynced commit pushed. 
Please retrigger the workflow.');
               }

Reply via email to