From 755c82561f713ff4940b5c5dc6e40afb1c8021d0 Mon Sep 17 00:00:00 2001 From: Joseph Kim Date: Fri, 1 Nov 2024 12:47:53 -0400 Subject: [PATCH] use a fixed number of SHORT_SHA for image name --- .github/workflows/next-build-image.yaml | 2 +- .github/workflows/pr-build-image.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/next-build-image.yaml b/.github/workflows/next-build-image.yaml index f8c36946a5..723c64c663 100644 --- a/.github/workflows/next-build-image.yaml +++ b/.github/workflows/next-build-image.yaml @@ -42,7 +42,7 @@ jobs: - name: Get the last commit short SHA run: | - SHORT_SHA=$(git rev-parse --short HEAD) + SHORT_SHA=$(git rev-parse --short=8 HEAD) echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV if [[ -f packages/app/src/build-metadata.json ]]; then repo="${{ github.repository }}" diff --git a/.github/workflows/pr-build-image.yaml b/.github/workflows/pr-build-image.yaml index 5731abe3a9..8bec5ce35f 100644 --- a/.github/workflows/pr-build-image.yaml +++ b/.github/workflows/pr-build-image.yaml @@ -54,7 +54,7 @@ jobs: - name: Get the last commit short SHA of the PR run: | - SHORT_SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha }}) + SHORT_SHA=$(git rev-parse --short=8 ${{ github.event.pull_request.head.sha }}) echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV if [[ -f packages/app/src/build-metadata.json ]]; then repoPR="${{ github.repository }}/pull/${{ github.event.number }}"