Skip to content

Commit 1119528

Browse files
committed
GitHub Actions don't use bash
1 parent 8bd3aad commit 1119528

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-
REF_NAME="${{ github.ref_name }}"; export VERSION="${REF_NAME:1}"
45+
export VERSION=$(cut -c2- <<< ${{ github.ref_name }})
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)