From 618a0ba8624369a90f5e188bb355ccf59beb0ca2 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 28 Jul 2022 20:14:47 -0400 Subject: [PATCH] make repository name lowercase Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b969ef..cc37403 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -106,7 +106,13 @@ jobs: - name: Update action.yml to use edge tagged container image if: github.ref == 'refs/heads/main' run: | - sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml + REPOSITORY_OWNER=${{ github.repository_owner }} + REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]') + + REPOSITORY_NAME=${{ github.event.repository.name }} + REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]') + + sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/' action.yml cat action.yml - name: Running test