Skip to content

Commit

Permalink
fix: realease workflow latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Oct 27, 2024
1 parent de69e03 commit 0833f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
- name: Check if version is higher
id: check-version
run: |
if node -pe "const semver = require('semver'); semver.gt('${{ env.version }}', '${{ steps.get-latest-tag.outputs.tag }}')"; then
latest_tag="${{ steps.get-latest-tag.outputs.tag }}"
if node -pe "const semver = require('semver'); semver.gt('${{ env.version }}', '${latest_tag}')"; then
echo "is_higher_version=true" >> $GITHUB_ENV
else
echo "is_higher_version=false" >> $GITHUB_ENV
Expand Down

0 comments on commit 0833f8f

Please sign in to comment.