From e97ea1677f4e3180aa34b5ec694b15e0be94c47f Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Wed, 26 Apr 2023 17:42:12 +0100 Subject: [PATCH] set github repository string as lowercase --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 33c973d..28b31cb 100644 --- a/action.yml +++ b/action.yml @@ -50,6 +50,8 @@ 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 + # We need to get the repository name in lowercase, otherwise it could fail + repo=$(echo "{{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "KO_DOCKER_REPO=ghcr.io/${repo}" + echo "KO_DOCKER_REPO=ghcr.io/${repo}" >> $GITHUB_ENV fi