Skip to content

Commit

Permalink
Fix version format for development build
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jun 21, 2024
1 parent f33085f commit 4d3f057
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions get/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.1

- Fix version format for development build

# 1.1.0

- Added option to get development builds
Expand Down
2 changes: 1 addition & 1 deletion get/rootfs/etc/addon/run
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ elif bashio::var.equals "${CHANNEL}" "development"; then

bashio::log.info "Injecting a version..."
current_version=$(curl -sSL https://data-v2.hacs.xyz/integration/data.json | jq -r '.["172733314"].last_version')
updated_version="$(echo "${current_version}" | awk -F. -v OFS=. '{$NF += 1 ; print}').dev$(git rev-parse --short HEAD)"
updated_version="$(echo "${current_version}" | awk -F. -v OFS=. '{$NF += 1 ; print}')-dev-$(git rev-parse --short HEAD)"
python3 ./scripts/update/manifest.py --version "${updated_version}"
bashio::log.info "Version set to: ${updated_version}"

Expand Down

0 comments on commit 4d3f057

Please sign in to comment.