From 202d5078395e472bda3fbedb847db4f134853485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Bohn?= Date: Sun, 2 Apr 2023 00:19:41 +0200 Subject: [PATCH] Allow uppercase characters in organization names. For Docker repository URLs only lower-case characters are allowed. Therefore the action fails for such users/organizations. The PR uses bash parameter substitution to fix that. --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 33c973d..0df1c55 100644 --- a/action.yml +++ b/action.yml @@ -50,6 +50,7 @@ runs: echo "${{ github.token }}" | ko login ghcr.io --username "dummy" --password-stdin # Set KO_DOCKER_REPO for future steps. - echo "KO_DOCKER_REPO=ghcr.io/${{ github.repository }}" - echo "KO_DOCKER_REPO=ghcr.io/${{ github.repository }}" >> $GITHUB_ENV + GITHUB_REPOSITORY="${{ github.repository }}" + echo "KO_DOCKER_REPO=ghcr.io/${GITHUB_REPOSITORY,,}" + echo "KO_DOCKER_REPO=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV fi