containers/apps/home-assistant/ci/version.sh

5 lines
232 B
Bash
Raw Normal View History

2024-12-30 20:50:06 +00:00
#!/usr/bin/env bash
version=$(curl -sX GET "https://api.github.com/repos/home-assistant/core/releases/latest" | jq --raw-output '.tag_name' 2>/dev/null)
version="${version#*v}"
version="${version#*release-}"
printf "%s" "${version}"