From feea6064e85a05f6344deec66a50972977f202c5 Mon Sep 17 00:00:00 2001 From: ebronson68 <111298136+ebronson68@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:27:04 -0500 Subject: [PATCH] Shorten checksum in app name to 18 chars --- .github/workflows/ephemeral-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ephemeral-deploy.yaml b/.github/workflows/ephemeral-deploy.yaml index 692967b..e1e81f8 100644 --- a/.github/workflows/ephemeral-deploy.yaml +++ b/.github/workflows/ephemeral-deploy.yaml @@ -100,7 +100,7 @@ jobs: id: checksum run: | CHECKSUM=$(echo -n '${{ inputs.repositoryName }}-${{ steps.jira-ticket.outputs.jiraTicketIdLc }}' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | sed 's/--/-/g' | sed 's/^-//;s/-$//' | cut -c1-31 | md5sum | cut -d' ' -f1 | sed 's/^\([0-9]\)/a\1/') - SHORT_CHECKSUM=${CHECKSUM:0:20} + SHORT_CHECKSUM=${CHECKSUM:0:18} CONTAINER_APP_NAME="${SHORT_CHECKSUM}-${{ steps.jira-ticket.outputs.jiraTicketIdLc }}" echo "containerAppName=${CONTAINER_APP_NAME}" >> $GITHUB_OUTPUT outputs: