Skip to content

Commit 5eccd68

Browse files
authored
Merge pull request #26 from notsag/patch-1
Remove test for API_TOKEN in tag list
2 parents d0c49cf + d68eaea commit 5eccd68

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lib/utils.bash

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ sort_versions() {
2626
}
2727

2828
list_github_tags() {
29-
if [ -n "${GITHUB_API_TOKEN:-}" ]; then
30-
git ls-remote --tags --refs "$GH_REPO" |
31-
grep -oE 'refs/tags/v[0-9]+.[0-9]+.[0-9]+$' |
32-
cut -d/ -f3- |
33-
sed 's/^v//' |
34-
sort -V
35-
else
36-
# If we can't use the GitHub API, we'll just hardcode the latest version
37-
echo "14.2.2"
38-
fi
29+
git ls-remote --tags --refs "$GH_REPO" |
30+
grep -oE 'refs/tags/v[0-9]+.[0-9]+.[0-9]+$' |
31+
cut -d/ -f3- |
32+
sed 's/^v//' |
33+
sort -V
3934
}
4035

4136
list_all_versions() {

0 commit comments

Comments
 (0)