From f86697a1e5239ab03ded1cf1faabaec3d4b6bd2d Mon Sep 17 00:00:00 2001 From: Aaron Ogle Date: Fri, 14 Jun 2024 00:30:45 -0500 Subject: [PATCH] lowercase for the ci --- .github/workflows/tag-release.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml index 7411b8a..28cab9a 100644 --- a/.github/workflows/tag-release.yaml +++ b/.github/workflows/tag-release.yaml @@ -28,13 +28,27 @@ jobs: - name: Expose GH Runtime uses: crazy-max/ghaction-github-runtime@v3 + - name: set lower case owner name + run: | + echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} + env: + OWNER: "${{ github.repository_owner }}" + + - name: Convert repository name to lowercase + run: echo "REPO_NAME_LC=$(echo ${{ github.event.repository.name }} | awk '{print tolower($0)}')" >> $GITHUB_ENV + - name: Build and Push Docker Images run: | - TAG=${GITHUB_REF#refs/heads/} make build_and_push_images + if [[ $GITHUB_REF == refs/tags/* ]]; then + TAG=${GITHUB_REF#refs/tags/} + else + TAG=${GITHUB_REF#refs/heads/} + fi + make build_and_push_images env: REGISTRY: ghcr.io - ORG: ${{ github.repository_owner }} - REPO: ${{ github.event.repository.name }} + ORG: ${{ env.OWNER_LC }} + REPO: ${{ env.REPO_NAME_LC }} GITHUB_WORKFLOW: ${{ github.workflow }} build-tauri: