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.
This commit is contained in:
Sören Bohn 2023-04-02 00:19:41 +02:00 committed by GitHub
parent f3c6980bb2
commit 202d507839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ runs:
echo "${{ github.token }}" | ko login ghcr.io --username "dummy" --password-stdin echo "${{ github.token }}" | ko login ghcr.io --username "dummy" --password-stdin
# Set KO_DOCKER_REPO for future steps. # Set KO_DOCKER_REPO for future steps.
echo "KO_DOCKER_REPO=ghcr.io/${{ github.repository }}" GITHUB_REPOSITORY="${{ github.repository }}"
echo "KO_DOCKER_REPO=ghcr.io/${{ github.repository }}" >> $GITHUB_ENV echo "KO_DOCKER_REPO=ghcr.io/${GITHUB_REPOSITORY,,}"
echo "KO_DOCKER_REPO=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
fi fi