Skip to content

v2026.6.5 ⚡

v2026.6.5 ⚡ #40

name: Update Version on Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update manifest version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "Updating version to $VERSION"
jq --arg v "$VERSION" '.version = $v' custom_components/victron_mqtt/manifest.json > tmp.json
mv tmp.json custom_components/victron_mqtt/manifest.json
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add custom_components/victron_mqtt/manifest.json
git commit -m "Bump version to ${GITHUB_REF_NAME#v}" || exit 0
git push
- name: Update release tag to include version bump
run: |
git tag -f $GITHUB_REF_NAME
git push -f origin $GITHUB_REF_NAME