With the addition of the shared-action-workflow changes described below, we should revise the rapids-size-checker to utilize the RAPIDS_BASE_BRANCH environment variable instead of fetching it via the API in the shell script.
rapids-size-checker lines -
|
curl_headers=('-H' "Authorization: token ${RAPIDS_GH_TOKEN}") |
|
resp=$( |
|
curl \ |
|
-H "Accept: application/vnd.github.v3+json" \ |
|
"${curl_headers[@]}" \ |
|
"https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${pr_num}" |
|
) |
|
base_branch=$(echo "${resp}" | jq -r '.base.ref') |
Relevant shared-action-workflow changes:
With the addition of the
shared-action-workflowchanges described below, we should revise therapids-size-checkerto utilize theRAPIDS_BASE_BRANCHenvironment variable instead of fetching it via the API in the shell script.rapids-size-checkerlines -gha-tools/tools/rapids-size-checker
Lines 10 to 17 in 4664eb1
Relevant
shared-action-workflowchanges:RAPIDS_BASE_BRANCHenv var - Add custom-job.yaml, RAPIDS_BASE_BRANCH, Codecov support shared-workflows#20