chore(revert): fix: alternative route of getting latest Gitea version

Revert 53375283d4
fix: alternative route of getting latest Gitea version

Use git ls-remote and git-mirror instead of the API

$ version=1.23
$ git ls-remote --refs --tags --sort=version:refname https://git-mirror.forgejo.org/go-gitea/gitea "v$version*" | sed -n -E -e "s|^.*/v($version[\.0-9]*)$|\1|p"
1.23.0
1.23.1
1.23.2
1.23.3
1.23.4
1.23.5
1.23.6
1.23.7
This commit is contained in:
limiting-factor 2025-05-09 12:22:45 +02:00
parent 5a339800d3
commit 5b5dab8c13
No known key found for this signature in database
GPG key ID: FBFC3FECD17D904F
3 changed files with 2 additions and 45 deletions

View file

@ -69,11 +69,6 @@ function migration_assert() {
}
function test_gitea_upgrades() {
local token="$1"
GITEA_AUTHORIZATION_HEADER="Authorization: token $token"
run dependencies
local config=$UPGRADE_DIR/default-app.ini
# The Forgejo target migration version must be 10.0 because it is the last supported.
# https://forgejo.org/2024-12-gitea-compatibility/
@ -111,4 +106,5 @@ function test_upgrades() {
run test_successful_upgrades
run test_forgejo_pprof
run test_gitea_upgrades
}