From 1717445ebede75db1405aace2cb02ca8a84d0905 Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 26 Aug 2024 19:42:07 +0800 Subject: [PATCH] fix: failed to get github sha (#4620) --- .github/workflows/release-dev-builder-images.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-dev-builder-images.yaml b/.github/workflows/release-dev-builder-images.yaml index 283c16ec45af..36a296c55c50 100644 --- a/.github/workflows/release-dev-builder-images.yaml +++ b/.github/workflows/release-dev-builder-images.yaml @@ -36,7 +36,7 @@ jobs: id: set-version shell: bash run: | - commitShortSHA=`echo ${GITHUB_SHA} | cut -c1-8` + commitShortSHA=`echo ${{ github.sha }} | cut -c1-8` buildTime=`date +%Y%m%d%H%M%S` BUILD_VERSION="$commitShortSHA-$buildTime" RUST_TOOLCHAIN_VERSION=$(cat rust_toolchain.toml | grep -Eo '[0-9]{4}-[0-9]{2}-[0-9]{2}')