Skip to content

Commit dd559c5

Browse files
Yikundchvn
authored andcommitted
[SPARK-37879][INFRA][FOLLOWUP] Change actions to check-runs in update_build_status.yml
### What changes were proposed in this pull request? Change actions to check-runs in update_build_status.yml. ### Why are the changes needed? apache#35179 (comment) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes apache#35189 from Yikun/patch-11. Authored-by: Yikun Jiang <yikunkero@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent bdb2b97 commit dd559c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update_build_status.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
// Get the workflow run in the forked repository
6666
let run
6767
try {
68-
run = await github.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}', params)
68+
run = await github.request('GET /repos/{owner}/{repo}/check-runs/{run_id}', params)
6969
} catch (error) {
7070
console.error(error)
7171
// Run not found. This can happen when the PR author removes GitHub Actions runs or
@@ -83,7 +83,7 @@ jobs:
8383
output: cr.output,
8484
status: run.data.status,
8585
conclusion: run.data.conclusion,
86-
details_url: run.data.details_url
86+
details_url: run.data.url
8787
})
8888
} else {
8989
console.log(' Run ' + cr.id + ': set status (' + run.data.status + ')')
@@ -93,7 +93,7 @@ jobs:
9393
check_run_id: cr.id,
9494
output: cr.output,
9595
status: run.data.status,
96-
details_url: run.data.details_url
96+
details_url: run.data.url
9797
})
9898
}
9999

0 commit comments

Comments
 (0)