From 4b4550e44f6815110f69d952f7145705635835da Mon Sep 17 00:00:00 2001 From: Jason N <33561705+JasonN3@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:28:41 -0500 Subject: [PATCH] Update action.yml --- action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1cbeca2..e41024b 100644 --- a/action.yml +++ b/action.yml @@ -47,13 +47,21 @@ inputs: runs: using: composite steps: + - name: Lowercase Registry + id: registry_case + uses: ASzc/change-string-case-action@v6 + with: + string: ghcr.io/${{ github.repository }} + - name: Run docker image shell: bash run: | # Check if running inside of the action repo if [[ -z "${{ github.action_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=pr-${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi; fi if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi - docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${tag} \ + image=${{ steps.registry_case.outputs.lowercase }} + if [[ ${{ github.event_name }} == 'pull_request' ]]; then image="${image}/build-container-installer"; fi + docker run --privileged --volume .:/github/workspace/ ${image}:${tag} \ ARCH=${{ inputs.arch }} \ IMAGE_NAME=${{ inputs.image_name }} \ IMAGE_REPO=${{ inputs.image_repo }} \