Checking for latest release programatically?

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?

2 Likes