Skip to content

Commit

Permalink
Switch gh command to use git (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajschmidt8 authored Nov 16, 2023
1 parent ff82c0e commit 22082b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rapids-get-pr-conda-artifact
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 22082b7

Please sign in to comment.