Skip to content

Commit

Permalink
JH: fix action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn committed Jul 9, 2024
1 parent 6470fff commit 0deb06e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Home Assistant wheels builder"
name: "JH Home Assistant wheels builder"
description: "Builds and publishes python wheels"
inputs:
tag:
Expand Down Expand Up @@ -54,13 +54,13 @@ inputs:
required: false
wheels-host:
description: "wheels host URL"
default: "wheels.hass.io"
default: "wheels.iot.jethome.ru"
wheels-user:
description: "User for wheels host"
default: "wheels"
wheels-index:
description: "The wheels index URL"
default: "https://wheels.home-assistant.io"
default: "https://wheels.iot.jethome.ru"

runs:
using: "composite"
Expand All @@ -69,7 +69,7 @@ runs:
id: version
run: |
input="${GITHUB_ACTION_PATH##*/}"
if [[ "${input}" == "master" ]] || [[ -z "${input}" ]]; then
if [[ "${input}" == "master" ]] || [[ "${input}" == "master-jethub" ]] || [[ -z "${input}" ]]; then
input="dev"
fi
echo "version=${input}" >> $GITHUB_OUTPUT
Expand All @@ -84,14 +84,14 @@ runs:
# Validate & update known_hosts
ssh-keygen -y -e -f .ssh/id_rsa
ssh-keyscan -H ${{ inputs.wheels-host }} >> .ssh/known_hosts
ssh-keyscan -t rsa -H ${{ inputs.wheels-host }} >> .ssh/known_hosts
chmod 600 .ssh/*
fi
- shell: bash
id: pull
run: |
name="ghcr.io/home-assistant/wheels/${{ inputs.arch }}/${{ inputs.tag }}/${{ inputs.abi }}:${{ steps.version.outputs.version }}"
name="ghcr.io/jethub-homeassistant/wheels/${{ inputs.arch }}/${{ inputs.tag }}/${{ inputs.abi }}:${{ steps.version.outputs.version }}"
docker pull "$name"
echo "name=$name" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -160,7 +160,7 @@ runs:
${{ steps.pull.outputs.name }} \
--index "${{ inputs.wheels-index }}" \
--upload rsync \
--remote "${{ inputs.wheels-user }}@${{ inputs.wheels-host }}:/opt/wheels" \
--remote "${{ inputs.wheels-user }}@${{ inputs.wheels-host }}:/var/www/wheels" \
${{ steps.options.outputs.build }}
- shell: bash
Expand Down

0 comments on commit 0deb06e

Please sign in to comment.