From 6b6fd4bcacd607234af3527427978c7574547e24 Mon Sep 17 00:00:00 2001 From: "Philippe M. Chiasson" Date: Thu, 26 May 2022 11:47:52 -0400 Subject: [PATCH] fix: filter only official released version --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index fa55331..eaab4f4 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -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 }