Skip to content

Commit

Permalink
feat: Bump version workflow now also creates tags
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Aug 11, 2024
1 parent eeaf9ec commit 0bb042c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ jobs:
sparse-checkout: |
custom_components/solarman/manifest.json
sparse-checkout-cone-mode: false
- run: 'sed -i "s/.*version.*/ \"version\": \"$(date +''%y.%m.%d'')\"/" custom_components/solarman/manifest.json'
- run: |
version=$(date +"%y.%m.%d")
sed -i "s/.*version.*/ \"version\": \"$version\"/" custom_components/solarman/manifest.json
git config --global user.name "Continuous Integration"
git config --global user.email "[email protected]"
git commit -m "chore: bump version" custom_components/solarman/manifest.json
git push
git tag -a "v$version" -m "Scheduled $([[ $version == *4 ]] || echo 'pre-')release"
git push --tags

0 comments on commit 0bb042c

Please sign in to comment.