Skip to content

Commit eed8ec0

Browse files
committed
Make GitHub project release tag detection more robust
1 parent 0fdce4b commit eed8ec0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/common.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ get_latest_github_release_tag () {
1919

2020
# get the tags JSON from the GitHub API and parse it manually,
2121
# or output it to stderr if the server returns an error
22+
# per_page=100 is required for some repositories with a lot of beta tags
2223
github_tags=`curl \
2324
--silent --show-error --fail-with-body \
2425
--header "$GITHUB_AUTHORIZATION_HEADER" \
25-
https://api.github.com/repos/$GITHUB_REPO/tags`
26+
https://api.github.com/repos/$GITHUB_REPO/tags?per_page=100`
2627

2728
echo "$github_tags" \
2829
| grep '"name":' \

0 commit comments

Comments
 (0)