File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747
4848jobs :
4949 build-native :
50- name : Build Native Library
50+ name : Check changes
5151 runs-on : ubuntu-24.04
5252 container :
5353 image : amd64/rust
Original file line number Diff line number Diff line change 1+ #
12# Licensed to the Apache Software Foundation (ASF) under one
23# or more contributor license agreements. See the NOTICE file
34# distributed with this work for additional information
@@ -112,23 +113,18 @@ jobs:
112113 throw new Error('There was a new unsynced commit pushed. Please retrigger the workflow.');
113114 }
114115
115- // Here we get check run ID to provide Check run view instead of Actions view.
116+ // Here we get check run ID to provide Check run view instead of Actions view
116117 const check_runs = await github.request(check_run_endpoint, check_run_params)
117- const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / Build Native Library ")[0]
118+ const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / Check changes ")[0]
118119
119- if (check_run_head && check_run_head .head_sha != context.payload.pull_request.head.sha) {
120+ if (check_run_head.head_sha != context.payload.pull_request.head.sha) {
120121 throw new Error('There was a new unsynced commit pushed. Please retrigger the workflow.');
121122 }
122123
123- const check_run_url = check_run_head
124- ? 'https://github.com/'
125- + context.payload.pull_request.head.repo.full_name
126- + '/runs/'
127- + check_run_head.id
128- : 'https://github.com/'
129- + context.payload.pull_request.head.repo.full_name
130- + '/actions/runs/'
131- + run_id
124+ const check_run_url = 'https://github.com/'
125+ + context.payload.pull_request.head.repo.full_name
126+ + '/runs/'
127+ + check_run_head.id
132128
133129 const actions_url = 'https://github.com/'
134130 + context.payload.pull_request.head.repo.full_name
You can’t perform that action at this time.
0 commit comments