Skip to content

Commit dec0293

Browse files
committed
Fix unexpected redirection
1 parent 1119528 commit dec0293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs.yml

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

0 commit comments

Comments
 (0)