From ad91a03e77e2ae62aa2c908df8c132a97849e562 Mon Sep 17 00:00:00 2001 From: Matt White Date: Fri, 8 Jan 2021 16:45:45 +0000 Subject: [PATCH] Fix release again (#10) --- .github/workflows/release.yml | 2 +- .github/workflows/teslamate.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 528efd1..6739f57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: required: true default: i -name: Create Release +name: Create release jobs: build: diff --git a/.github/workflows/teslamate.yml b/.github/workflows/teslamate.yml index 2c69945..1e99f7c 100644 --- a/.github/workflows/teslamate.yml +++ b/.github/workflows/teslamate.yml @@ -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' }}