Skip to content

Commit

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

Please sign in to comment.