We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd3aad commit 1119528Copy full SHA for 1119528
.github/workflows/docs.yml
@@ -42,7 +42,7 @@ jobs:
42
- name: Set VERSION env from tag name
43
if: startsWith(github.ref, 'refs/tags/v')
44
run: |
45
- REF_NAME="${{ github.ref_name }}"; export VERSION="${REF_NAME:1}"
+ export VERSION=$(cut -c2- <<< ${{ github.ref_name }})
46
echo "VERSION=${VERSION}" >> $GITHUB_ENV
47
echo "IS_PREVIEW=$(node -p "Number('${VERSION}'.includes('-'))")" >> $GITHUB_ENV
48
echo "IS_BACKPORT=$(node -p "Number(require('semver').lt('${VERSION}','$(tail -n 1 gh-pages/VERSION.md)'))")" >> $GITHUB_ENV
0 commit comments