Skip to content

Commit

Permalink
Fix version order to find latest version (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi authored Oct 27, 2023
1 parent 9ecf207 commit 1c5a8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
echo "major-version: ${version/.*/}"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "major-version=${version/.*/}" >> "$GITHUB_OUTPUT"
release_version=$(git tag | tail -n1 | sed "s/^v//")
release_version=$(git tag | grep "^v" | sort --version-sort | tail -n1 | sed "s/^v//")
echo "release-version: $release_version"
echo "release-major-version: ${release_version/.*/}"
echo "release-version=$release_version" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 1c5a8bb

Please sign in to comment.