Fix docker release for new tags without `v`

This commit is contained in:
Jesse Hills 2021-08-18 15:10:44 +12:00
parent 1b8c9edcde
commit 2e59ad90cc
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ jobs:
id: tag
run: |
if [[ "$GITHUB_EVENT_NAME" = "release" ]]; then
TAG="${GITHUB_REF#refs/tags/v}"
TAG="${GITHUB_REF#refs/tags/}"
else
TAG=$(cat esphome/const.py | sed -n -E "s/^__version__\s+=\s+\"(.+)\"$/\1/p")
today="$(date --utc '+%Y%m%d')"
@ -138,7 +138,7 @@ jobs:
- env:
TOKEN: ${{ secrets.DEPLOY_HASSIO_TOKEN }}
run: |
TAG="${GITHUB_REF#refs/tags/v}"
TAG="${GITHUB_REF#refs/tags/}"
curl \
-u ":$TOKEN" \
-X POST \