diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c4fb49867..ab3de9910 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -42,7 +42,7 @@ jobs: - name: Set VERSION env from tag name if: startsWith(github.ref, 'refs/tags/v') run: | - export VERSION=$(cut -c2- <<< ${{ github.ref_name }}) + export VERSION=$(echo "${{ github.ref_name }}" | cut -c2-) echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "IS_PREVIEW=$(node -p "Number('${VERSION}'.includes('-'))")" >> $GITHUB_ENV echo "IS_BACKPORT=$(node -p "Number(require('semver').lt('${VERSION}','$(tail -n 1 gh-pages/VERSION.md)'))")" >> $GITHUB_ENV