-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Bump version workflow now also creates tags
- Loading branch information
1 parent
eeaf9ec
commit 0bb042c
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |