Skip to content

Commit

Permalink
fix: filter only official released version
Browse files Browse the repository at this point in the history
  • Loading branch information
gozer committed May 26, 2022
1 parent d06b8e7 commit 6b6fd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sort_versions() {

list_github_tags() {
git ls-remote --tags --refs "$GH_REPO" |
grep -o 'refs/tags/.*' | cut -d/ -f3- |
grep -o 'refs/tags/.*' | cut -d/ -f3- | grep -E '^v[0-9.]*$' |
sed 's/^v//' # NOTE: You might want to adapt this sed to remove non-version strings from tags
}

Expand Down

0 comments on commit 6b6fd4b

Please sign in to comment.