diff --git a/.github/workflows/pr-storybook.yml b/.github/workflows/pr-storybook.yml index 8ef602d39a..8c70ae07c7 100644 --- a/.github/workflows/pr-storybook.yml +++ b/.github/workflows/pr-storybook.yml @@ -37,8 +37,10 @@ jobs: yarn - name: Extract tag name shell: bash + env: + BRANCH_REF: ${{ github.event.pull_request.head.ref }} run: | - tag=$(branch=${{ github.event.pull_request.head.ref }}; echo ${branch/\//.}) + tag=$(echo ${BRANCH_REF/\//.}) if [[ $tag == next.* ]]; then echo "##[set-output name=tag;]$tag"