Skip to content

Commit

Permalink
Tweak docs bash
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Jan 6, 2025
1 parent 46d4bc4 commit 8bd3aad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
- name: Set VERSION env from tag name
if: startsWith(github.ref, 'refs/tags/v')
run: |
export REF_NAME=${{github.ref_name}}
export VERSION=${REF_NAME:1}
REF_NAME="${{ github.ref_name }}"; export VERSION="${REF_NAME:1}"
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
Expand Down

0 comments on commit 8bd3aad

Please sign in to comment.