Add gitea-tag

This commit is contained in:
MatMoul 2024-03-16 21:55:01 +01:00
parent 76940dd883
commit efb228b665

View File

@ -26,7 +26,7 @@ plugin_getlatestversion() {
local -r GITEAUSER=$(readSetting "${PKGSETTINGS}" "giteauser" "")
local -r GITEAREPO=$(readSetting "${PKGSETTINGS}" "gitearepo" "")
local GITEATAGNAME=""
if ! GITEATAGNAME=$(curl -sL "${GITEABASEURL}/repos/${GITEAUSER}/${GITEAREPO}/tags" | jq -r ".[0].name"); then
if ! GITEATAGNAME=$(curl -sL "${GITEABASEURL}/api/v1/repos/${GITEAUSER}/${GITEAREPO}/tags" | jq -r ".[0].name"); then
echo "Error in Gitea API"
return 1
fi