Skip to content

Commit

Permalink
Just add repositoryName input to checksum var
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Dec 15, 2023
1 parent e7eef7b commit be6825c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ephemeral-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ jobs:
- name: Generate container app name
id: checksum
run: |
REPOSITORY_NAME="${{ inputs.repositoryName }}"
CHECKSUM=$(echo -n '${REPOSITORY_NAME}-${{ 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/')
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}
CONTAINER_APP_NAME="${SHORT_CHECKSUM}-${{ steps.jira-ticket.outputs.jiraTicketIdLc }}"
echo "containerAppName=${CONTAINER_APP_NAME}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit be6825c

Please sign in to comment.