-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Corrected Version Numbers in HA (#175)
* fix: Corrected Version Numbers in HA
- Loading branch information
Showing
1 changed file
with
35 additions
and
5 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 |
---|---|---|
|
@@ -7,9 +7,39 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Semantic Releaser | ||
uses: jossef/action-semantic-releaser@v1 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Gets semantic release info | ||
id: semantic_release_info | ||
uses: jossef/action-semantic-release-info@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Update Version and Commit | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: | | ||
echo "Version: ${{steps.semantic_release_info.outputs.version}}" | ||
sed -i "s/\"version\": \".*\",/\"version\": \"${{steps.semantic_release_info.outputs.version}}\",/g" custom_components/kia_uvo/manifest.json | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}" | ||
git tag ${{ steps.semantic_release_info.outputs.git_tag }} | ||
- name: Push changes | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
tags: true | ||
|
||
- name: Create GitHub Release | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
release_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
body: ${{ steps.semantic_release_info.outputs.notes }} | ||
draft: false | ||
prerelease: false |