From f7db9266d6b1d15a9c001ae7278f09e30018443e Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 20 Aug 2022 21:39:44 +0100 Subject: [PATCH] sha short update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a1cf567..de36b8f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV - id: vars shell: bash - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "::set-output name=sha_short::${GITHUB_SHA::7}" - if: env.TAG_NAME == 'nightly' run: echo 'TAG_NAME=nightly-${{ steps.vars.outputs.sha_short }}' >> $GITHUB_ENV - id: tag