Skip to content

Commit ea2e271

Browse files
committed
Stop bumpiong integration version on each victron_mqtt update
1 parent f24e7ed commit ea2e271

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/update_victron_mqtt.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,9 @@ jobs:
5050
- name: Update manifest.json with new version
5151
if: steps.check_update.outputs.update_needed == 'true'
5252
run: |
53-
latest="${{ steps.get_release.outputs.latest_version }}"
54-
# Get current version
55-
current_version=$(jq -r '.version' custom_components/victron_mqtt/manifest.json)
56-
year=$(echo "$current_version" | cut -d. -f1)
57-
minor=$(echo "$current_version" | cut -d. -f2)
58-
patch=$(echo "$current_version" | cut -d. -f3)
59-
# Bump patch version
60-
new_patch=$((patch + 1))
61-
new_version="$year.$minor.$new_patch"
6253
jq \
6354
--arg v "$latest" \
64-
--arg nv "$new_version" \
65-
'.requirements[0] = "victron_mqtt=="+$v | .version = $nv' \
55+
'.requirements[0] = "victron_mqtt=="+$v' \
6656
custom_components/victron_mqtt/manifest.json > manifest.tmp && mv manifest.tmp custom_components/victron_mqtt/manifest.json
6757
6858
- name: Download victron_mqtt release package from PyPI

0 commit comments

Comments
 (0)