mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
Fix release again (#10)
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: i
|
default: i
|
||||||
|
|
||||||
name: Create Release
|
name: Create release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: teslamate
|
name: Teslamate CI/CD
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
esac
|
esac
|
||||||
- name: Update config.json if release
|
- name: Update config.json if release
|
||||||
run: |
|
run: |
|
||||||
export RELEASE=$( $GITHUB_REF | cut -d/ -f3 | sed s/v// )
|
export RELEASE=$( echo $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' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user