File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments