From ec2b954f6cd7faef2989beae4d32f3714db387a6 Mon Sep 17 00:00:00 2001 From: Josh Hendricks Date: Wed, 10 May 2023 16:46:45 -0700 Subject: [PATCH] fix: Handle upper case chars in repo name #5503 This resolves an error on the "Check Docker image" build step for any forks under GitHub users with an upper case character in their GitHub username. --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3e8b686d..e10aecede 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -144,9 +144,11 @@ jobs: - name: Check Docker image working-directory: /tmp + env: + REPO_FULL_NAME: '${{ github.event.repository.full_name }}' run: | - docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} new . - docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} build + docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} new . + docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} build - name: Set platforms if: github.event_name == 'release'