From 3a9e37c0a7447a75343cb2d27423a1e97f7caa99 Mon Sep 17 00:00:00 2001
From: Mira Ressel <mira@parity.io>
Date: Thu, 16 Mar 2023 13:41:43 +0100
Subject: [PATCH] fix BASE lookup in cargo-check-benches

---
 substrate/scripts/ci/gitlab/pipeline/test.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/scripts/ci/gitlab/pipeline/test.yml b/substrate/scripts/ci/gitlab/pipeline/test.yml
index fd031d9aa56..c13f2f3611b 100644
--- a/substrate/scripts/ci/gitlab/pipeline/test.yml
+++ b/substrate/scripts/ci/gitlab/pipeline/test.yml
@@ -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;
-- 
GitLab