From 22082b7ccd451f0dd24421aafab1749f73690916 Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Thu, 16 Nov 2023 18:08:19 -0500 Subject: [PATCH] Switch `gh` command to use `git` (#87) --- tools/rapids-get-pr-conda-artifact | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rapids-get-pr-conda-artifact b/tools/rapids-get-pr-conda-artifact index 9985720..3c3605d 100755 --- a/tools/rapids-get-pr-conda-artifact +++ b/tools/rapids-get-pr-conda-artifact @@ -30,7 +30,7 @@ esac commit="${4:-}" if [[ -z "${commit}" ]]; then - commit=$(gh api "/repos/rapidsai/${repo}/pulls/${pr}" -q '.head.sha[:7]') + commit=$(git ls-remote https://github.com/rapidsai/"${repo}".git refs/heads/pull-request/"${pr}" | cut -c1-7) fi rapids-get-artifact "ci/${repo}/pull-request/${pr}/${commit}/${artifact_name}"