Skip to content

Commit 8bd3aad

Browse files
committed
Tweak docs bash
1 parent 46d4bc4 commit 8bd3aad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
- name: Set VERSION env from tag name
4343
if: startsWith(github.ref, 'refs/tags/v')
4444
run: |
45-
export REF_NAME=${{github.ref_name}}
46-
export VERSION=${REF_NAME:1}
45+
REF_NAME="${{ github.ref_name }}"; export VERSION="${REF_NAME:1}"
4746
echo "VERSION=${VERSION}" >> $GITHUB_ENV
4847
echo "IS_PREVIEW=$(node -p "Number('${VERSION}'.includes('-'))")" >> $GITHUB_ENV
4948
echo "IS_BACKPORT=$(node -p "Number(require('semver').lt('${VERSION}','$(tail -n 1 gh-pages/VERSION.md)'))")" >> $GITHUB_ENV

0 commit comments

Comments
 (0)