From d87e84a2416ba0616268f803ed479f3da264a9e0 Mon Sep 17 00:00:00 2001 From: Daniel Milnes Date: Sat, 8 Aug 2020 21:19:43 +0100 Subject: [PATCH] Try a pre-built short hash action --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8467e52..344ecee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@master + - uses: benjlevesque/short-sha@v1.1 + id: short-sha + with: + length: 6 + - name: Setup Go uses: actions/setup-go@v2 with: @@ -31,8 +36,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.sha::8 }} - release_name: Release ${{ github.sha::8 }} + tag_name: ${{ steps.short-sha.outputs.sha }} + release_name: Release ${{ steps.short-sha.outputs.sha }} body: Automated release draft: false prerelease: false