Skip to content

Commit 8e3499f

Browse files
authored
ci(security): moves variable interpolation to an environment variable (#3453)
* security: moves variable interpolation to an environment variable Signed-off-by: Vincent Biret <[email protected]> * chore: simpler expression --------- Signed-off-by: Vincent Biret <[email protected]>
1 parent 261e58e commit 8e3499f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-storybook.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jobs:
3737
yarn
3838
- name: Extract tag name
3939
shell: bash
40+
env:
41+
BRANCH_REF: ${{ github.event.pull_request.head.ref }}
4042
run: |
41-
tag=$(branch=${{ github.event.pull_request.head.ref }}; echo ${branch/\//.})
43+
tag=$(echo ${BRANCH_REF/\//.})
4244
if [[ $tag == next.* ]];
4345
then
4446
echo "##[set-output name=tag;]$tag"

0 commit comments

Comments
 (0)