From 9e0f7d50c14ab09eccdfb1b48c49e01b4a81a05b Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Sat, 2 Jan 2021 11:39:54 +0100 Subject: [PATCH] fix: shorten commit hash with environment file --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0054c984..3c4817453 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,10 +68,7 @@ jobs: shell: python - name: Shorten commit SHA - run: | - import os - print("::set-env name=COMMIT_SHA::%s" % os.environ['GITHUB_SHA'][:7]) - shell: python + run: echo "COMMIT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV - uses: actions/upload-artifact@master with: