From f530a87ee990215cbbbefdee1a12aaec8b39a524 Mon Sep 17 00:00:00 2001 From: Naresh Kumar Babu Date: Thu, 20 Jun 2024 17:30:04 +0530 Subject: [PATCH] Fixes commit SHA length for master branch builds (#394) --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2ba1984e..57e6a8a1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -97,7 +97,7 @@ jobs: echo REGISTRY_TAGS=$REGISTRY_TAGS echo headref=${{ github.head_ref }} - SHA_SHORT=${{ github.sha }} + SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-8) [ "${{ github.event_name }}" == "pull_request" ] && SHA_SHORT=$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-8) echo "Final image tag to be pushed:"