fix: failed to get github sha (#4620)

This commit is contained in:
liyang
2024-08-26 19:42:07 +08:00
committed by GitHub
parent 55d65da24d
commit 1717445ebe

View File

@@ -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}')