From 481b89ca93413d32807dff2d870a2a71eebf8dba Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Sat, 30 Nov 2024 18:32:18 -0600 Subject: [PATCH] Fix v prefix issue in docker image comment --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7670a9..bc0bac7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,9 +84,10 @@ jobs: - name: Get Docker Image Info id: image-info run: | - # Convert to lowercase for Docker compatibility + # Convert to lowercase for Docker compatibility and remove 'v' prefix from tag REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') - echo "image=${{ env.REGISTRY }}/${REPO_LOWER}:${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT + TAG_NO_V=$(echo "${{ github.event.release.tag_name }}" | sed 's/^v//') + echo "image=${{ env.REGISTRY }}/${REPO_LOWER}:${TAG_NO_V}" >> $GITHUB_OUTPUT - name: Update Release Notes uses: softprops/action-gh-release@v1