Fix release again (#10)

This commit is contained in:
Matt White
2021-01-08 16:45:45 +00:00
committed by GitHub
parent 089d1603f6
commit ad91a03e77
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ on:
required: true
default: i
name: Create Release
name: Create release
jobs:
build:
+2 -2
View File
@@ -1,4 +1,4 @@
name: teslamate
name: Teslamate CI/CD
on:
push:
@@ -66,7 +66,7 @@ jobs:
esac
- name: Update config.json if release
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
rm config.json && mv config_release.json config.json
if: ${{ github.event_name == 'release' }}