Skip to content

Commit

Permalink
filter tags down to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
safinn committed Aug 4, 2024
1 parent d164efb commit f06a6d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ sort_versions() {
list_github_tags() {
git ls-remote --tags --refs "$GH_REPO" |
grep -o 'refs/tags/.*' | cut -d/ -f3- |
sed 's/^v//' # NOTE: You might want to adapt this sed to remove non-version strings from tags
sed 's/^v//' | # NOTE: You might want to adapt this sed to remove non-version strings from tags
grep -Ev '^[0-9]{4}\.|[a-zA-Z]' # Removes tags starting with 4 digits followed by a dot and tags containing letters
}

list_all_versions() {
Expand Down

0 comments on commit f06a6d9

Please sign in to comment.