build(ci): Set branch name to intermediary environment variable
diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml
index c4c43debb8f748..be236d171bb499 100644
--- a/.github/workflows/acceptance.yml
+++ b/.github/workflows/acceptance.yml
@@ -199,8 +199,10 @@ jobs:
       - name: Get merge base
         if: github.event.pull_request.head.ref != ''
         id: merge-base
+        env:
+          REF: ${{ github.event.pull_request.head.ref }}
         run: |
-          echo "::set-output name=sha::$(git merge-base origin/master ${{ github.event.pull_request.head.ref }})"
+          echo "::set-output name=sha::$(git merge-base origin/master $REF)"
 
       - name: Diff snapshots
         id: visual-snapshots-diff
