build-hass/README.md

25 lines
1.3 KiB
Markdown

# build-hass
[![Build Status](https://jenkins.sudo.is/buildStatus/icon?job=ben%2Fbuild-hass%2Fmain&style=flat-square)](https://jenkins.sudo.is/job/ben/job/build-hass/job/main/)
[![version](https://jenkins.sudo.is/buildStatus/icon?job=ben%2Fbuild-hass%2Fmain&style=flat-square&status=${description}&subject=version&build=lastStable&color=blue)](https://git.sudo.is/ben/build-hass/packages)
[![git](https://www.sudo.is/readmes/git.sudo.is-ben.svg)](https://git.sudo.is/ben/build-hass)
[![github](https://www.sudo.is/readmes/github-benediktkr.svg)](https://github.com/benediktkr/build-hass)
[![matrix](https://www.sudo.is/readmes/matrix-ben-sudo.is.svg)](https://matrix.to/#/@ben:sudo.is)
[![Home Assistant logo](img/home-assistant.svg)](https://design.home-assistant.io/#brand/logo)
## 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](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release).
```console
$ 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.