1.3 KiB
1.3 KiB
build-hass
Get latest release
Reading the git tags is a bit unreliable. Another way to do it would be to use the GitHub REST API to get the latest release.
$ curl -s https://api.github.com/repos/home-assistant/core/releases/latest | jq .name
"2024.2.5"
This is probably easier, and does not require auth (for public repos). The returned JSON contains a whole bunch of fields and info, this may not be the right one. Open the API URL in Firefox and take a look.