0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-24 18:09:26 -05:00

v7.0.3 is greater than v7.0-test

This commit is contained in:
Earl Warren 2024-05-26 12:25:53 +02:00
parent 8371da465f
commit d0666b1bfd
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -e
set -ex
: ${FORGEJO:=/tmp/forgejo-binary}
@ -17,7 +17,7 @@ function latest() {
if test "$major" = "next" ; then
select="" # this will pick whatever is the highest numbered release
else
select="$major"
select="$major-test"
fi
curl -sS https://codeberg.org/api/v1/repos/forgejo-experimental/forgejo/releases | jq -r '.[] | .tag_name | select(startswith("'$select'"))' | sort --reverse --version-sort | head -1
}