fix BASE lookup in cargo-check-benches

This commit is contained in:
Mira Ressel
2023-03-16 13:41:43 +01:00
parent ce08e1354f
commit 3a9e37c0a7
@@ -91,7 +91,7 @@ cargo-check-benches:
- !reference [.pipeline-stopper-vars, script]
# merges in the master branch on PRs
- |
export BASE=$(curl -s -H "Authorization: Bearer ${GITHUB_PR_TOKEN}" https://api.github.com/repos/paritytech/substrate/pulls/${$CI_COMMIT_REF_NAME} | jq .base.ref)
export BASE=$(curl -s -H "Authorization: Bearer ${GITHUB_PR_TOKEN}" https://api.github.com/repos/paritytech/substrate/pulls/${CI_COMMIT_REF_NAME} | jq .base.ref)
- if [ $CI_COMMIT_REF_NAME != "master" ]; then
git fetch origin +${BASE}:${BASE};
git fetch origin +$CI_COMMIT_REF_NAME:$CI_COMMIT_REF_NAME;