From dec02932a7f2fddccb44b6b1471bbe6e697c6d1d Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Mon, 6 Jan 2025 19:37:58 +0100 Subject: [PATCH] Fix unexpected redirection --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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