I have a script that updates my instance of gitea based on the latest release. I’ve hacked this script together, and it depends on https://dl.gitea.com/gitea/version.json showing the latest version. Now gitea 1.24.7 and 1.25.0 have both been released without this script updating my instance. So rather than trying to hack it about based on assumptions and half baked theories I figured I’d ask, is there a supported endpoint to query to get the latest release version for gitea?
I would note that if you go to the website and download gitea it still gives you version 1.24.6 by default, which is the version currently showing in https://dl.gitea.com/gitea/version.json
Also I’m investigating using gitea actions, and would need a reliable why to keep the action runners up to date too, so is there a place to get the latest release version for those programmatically too?
Well it does appear that the the version.json has been updated to 1.25.0.
My script, for what it’s worth is included below. It’s definitely not perfect, but it’s good enough for me to run regularly by cron. Not how I’d do this if I was being paid for it, but I’m not, so hopefullyy this can help someone else.