fix(lib): explicitly set the page limit for releases
otherwise it is subject to limitations imposed by the server and as the number of releases grow, the older ones will no longer be found.
This commit is contained in:
parent
2171ed7a5e
commit
d9fc5cee11
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ function full_version() {
|
||||||
local owner=$2
|
local owner=$2
|
||||||
|
|
||||||
if [[ $version =~ ^[0-9]+\.[0-9]+$ ]] ; then
|
if [[ $version =~ ^[0-9]+\.[0-9]+$ ]] ; then
|
||||||
full_version=$(curl -sS https://codeberg.org/api/v1/repos/$owner/forgejo/releases | jq -r '.[] | .tag_name | select(startswith("v'$version'"))' | sort --reverse --version-sort | head -1)
|
full_version=$(curl -sS "https://codeberg.org/api/v1/repos/$owner/forgejo/releases?limit=50" | jq -r '.[] | .tag_name | select(startswith("v'$version'"))' | sort --reverse --version-sort | head -1)
|
||||||
echo ${full_version#v}
|
echo ${full_version#v}
|
||||||
else
|
else
|
||||||
echo $version
|
echo $version
|
||||||
|
|
Loading…
Add table
Reference in a new issue