From 75b525ba279f28530fcffaeba48cbbb8c9b17bb3 Mon Sep 17 00:00:00 2001 From: E Shattow Date: Thu, 30 Apr 2026 18:36:42 -0700 Subject: [PATCH] action: use action self-context repository to form the docker image 'name' github.action_repository is imported to the env as ACTION_REPOSITORY for a repository fork-friendly docker image reference github.repository is used instead when there is no action_repository as for example when called from tests as a dotslash self-reference --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f87eb6fc..ca0d25a7 100644 --- a/action.yml +++ b/action.yml @@ -103,9 +103,11 @@ runs: - shell: bash id: pull run: | - name="ghcr.io/home-assistant/wheels/${{ inputs.arch }}/${{ inputs.tag }}/${{ inputs.abi }}:${{ steps.version.outputs.version }}" + name="ghcr.io/$ACTION_REPOSITORY/${{ inputs.arch }}/${{ inputs.tag }}/${{ inputs.abi }}:${{ steps.version.outputs.version }}" docker pull "$name" echo "name=$name" >> $GITHUB_OUTPUT + env: + ACTION_REPOSITORY: ${{ github.action_repository || github.repository }} - shell: bash id: options