Skip to content

Commit

Permalink
chore: fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mukaschultze committed Jan 17, 2024
1 parent 5f51dfa commit d843f17
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
- name: "Checkout the repository"
uses: "actions/checkout@v4.1.1"

- name: Set VERSION variable from tag
run: |
TAG=${{ github.event.release.tag_name }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: "Adjust version number"
shell: "bash"
run: |
TAG=${{ github.event.release.tag_name }}
yq -i -o json '.version="${{TAG#v}}"' \
yq -i -o json '.version="${{ env.VERSION }}"' \
"${{ github.workspace }}/custom_components/must_inverter/manifest.json"
- name: "ZIP the integration directory"
Expand Down

0 comments on commit d843f17

Please sign in to comment.