Skip to content

Commit

Permalink
JH: fix action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn authored and jethome-bot committed Nov 12, 2024
1 parent 3c8716d commit 6f69b2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jh-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
echo "docker=${docker[@]}" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
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 6f69b2b

Please sign in to comment.