Add gitea-tag
This commit is contained in:
parent
76940dd883
commit
efb228b665
@ -26,7 +26,7 @@ plugin_getlatestversion() {
|
|||||||
local -r GITEAUSER=$(readSetting "${PKGSETTINGS}" "giteauser" "")
|
local -r GITEAUSER=$(readSetting "${PKGSETTINGS}" "giteauser" "")
|
||||||
local -r GITEAREPO=$(readSetting "${PKGSETTINGS}" "gitearepo" "")
|
local -r GITEAREPO=$(readSetting "${PKGSETTINGS}" "gitearepo" "")
|
||||||
local GITEATAGNAME=""
|
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"
|
echo "Error in Gitea API"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user