diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 4419abf9..7c456c57 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -17,7 +17,7 @@ jobs: - name: Update dev version run: | git fetch --prune --unshallow --tags - tags="$(git tag --list)" + tags="$(git tag --sort version:refname)" latest_tag=${tags: -6 : 6} old_version=${latest_tag:1:5} echo "Old Version: $old_version"