Skip to content

Commit

Permalink
JH: Fix ./action.yml for JH
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn committed Sep 24, 2023
1 parent 050458c commit e9d5e38
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 @@ -57,13 +57,13 @@ inputs:
required: false
wheels-host:
description: "wheels host URL"
default: "wheels.hass.io"
default: "wheels.jhaos.dev"
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.jhaos.dev"

runs:
using: "composite"
Expand All @@ -72,7 +72,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 @@ -87,14 +87,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 @@ -166,7 +166,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 e9d5e38

Please sign in to comment.