Skip to content

Commit

Permalink
Make GitHub project release tag detection more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Dec 28, 2023
1 parent 0fdce4b commit eed8ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ get_latest_github_release_tag () {

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

echo "$github_tags" \
| grep '"name":' \
Expand Down

0 comments on commit eed8ec0

Please sign in to comment.