mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Bugfix release automation (#9)
This commit is contained in:
@@ -57,8 +57,10 @@ jobs:
|
|||||||
jq '.version="${{ steps.semver.outputs.semver }}"' < ${{ github.workspace }}/teslamate/config.json > ${{ github.workspace }}/repo/teslamate/config.json
|
jq '.version="${{ steps.semver.outputs.semver }}"' < ${{ github.workspace }}/teslamate/config.json > ${{ github.workspace }}/repo/teslamate/config.json
|
||||||
- name: Add changes to addon repo
|
- name: Add changes to addon repo
|
||||||
run: |
|
run: |
|
||||||
git add .
|
if [ "$(git status -s)" ]; then
|
||||||
git commit -m 'Update from hassio-addon-teslamate'
|
git add .
|
||||||
git push
|
git commit -m 'Update from hassio-addon-teslamate'
|
||||||
|
git push
|
||||||
|
fi
|
||||||
working-directory: ${{ github.workspace }}/repo/teslamate
|
working-directory: ${{ github.workspace }}/repo/teslamate
|
||||||
|
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ jobs:
|
|||||||
esac
|
esac
|
||||||
- name: Update config.json if release
|
- name: Update config.json if release
|
||||||
run: |
|
run: |
|
||||||
export RELEASE=$( $GITHUB_REF | sed s/v// )
|
export RELEASE=$( $GITHUB_REF | cut -d/ -f3 | sed s/v// )
|
||||||
jq ".version=\"$RELEASE\"" < /config.json > config_release.json
|
jq ".version=\"$RELEASE\"" < config.json > config_release.json
|
||||||
rm config.json && mv config_release.json config.json
|
rm config.json && mv config_release.json config.json
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
- name: Set environment variables from config.json
|
- name: Set environment variables from config.json
|
||||||
|
|||||||
Reference in New Issue
Block a user