Skip to content

Commit

Permalink
comply with new versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
hydazz committed Aug 19, 2021
1 parent d3bf885 commit ab96978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/vars.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ IMAGES=''
RELEASE_SCHEDULE='20 0 * * 1-6'
BEAUTY_NAME='ESPHome'
# apostrophe needs be replaced with '\x27'
RELEASE_VERSION_COMMAND='$(curl -sL https://api.github.com/repos/esphome/esphome/releases/latest | jq -r \x27.tag_name\x27 | cut -c 2-)'
RELEASE_VERSION_COMMAND='$(curl -sL https://api.github.com/repos/esphome/esphome/releases/latest | jq -r \x27.tag_name\x27)'
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
VERSION=$(curl -sL https://api.github.com/repos/esphome/esphome/releases/latest | jq -r '.tag_name' | cut -c 2-)
VERSION=$(curl -sL https://api.github.com/repos/esphome/esphome/releases/latest | jq -r '.tag_name')
OLD_VERSION=$(curl -sL "https://api.github.com/repos/hydazz/docker-esphome/releases/latest" | jq -r '.tag_name')
printf '{
"tag_name": "'${VERSION}'",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN set -xe && \
apk add --no-cache \
py3-pip && \
if [ -z ${VERSION} ]; then \
VERSION=$(curl -sX GET https://api.github.com/repos/esphome/esphome/releases/latest | \
VERSION=$(curl -sL https://api.github.com/repos/esphome/esphome/releases/latest | \
jq -r '.tag_name'); \
fi && \
pip3 install -U \
Expand Down

0 comments on commit ab96978

Please sign in to comment.