Skip to content

Commit 6ba7883

Browse files
authored
Fix problems with getting the current version for development builds (hacs#10)
* Fix problems with getting the current version for development builds * use data
1 parent 8216b4a commit 6ba7883

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

get/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.3.1
2+
3+
- Fix problems with getting the current version for development builds
4+
15
# 1.3.0
26

37
- Dynamically get the version again

get/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Get HACS
2-
version: "1.3.0"
2+
version: "1.3.1"
33
slug: get
44
image: "ghcr.io/hacs/{arch}-addon-get"
55
description: The easiest way to get HACS for Home Assistant

get/rootfs/etc/addon/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elif bashio::var.equals "${CHANNEL}" "development"; then
3333
bash ./scripts/install/frontend
3434

3535
bashio::log.info "Injecting a version..."
36-
current_tag="$(git describe --tags --abbrev=0)"
36+
current_tag=$(curl -sSL https://data-v2.hacs.xyz/integration/data.json | jq -r '.["172733314"].last_version')
3737
current_commit="$(git rev-parse --short HEAD)"
3838
updated_version="$(echo ${current_tag} | awk -F. -v OFS=. '{$NF += 1 ; print}')-dev-${current_commit}"
3939
python3 ./scripts/update/manifest.py --version "${updated_version}"

0 commit comments

Comments
 (0)