Browse Source

build(ci): Set branch name to intermediary environment variable (#22295)

Armen Zambrano G 4 years ago
parent
commit
11f5c4646a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/acceptance.yml

+ 3 - 1
.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