From fa5213a4a89a60e852be6e58ff7d28aff75f7f8e Mon Sep 17 00:00:00 2001 From: Liz Graham Date: Fri, 25 Mar 2022 15:33:38 +0000 Subject: [PATCH] update build.yml add a few extra steps to make sha shorter for artifact --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 404a840..a3e7342 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,12 @@ jobs: run: ref="${GITHUB_REF#refs/heads/}" && echo "::set-output name=branch::${ref////-}" id: ref + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - name: Check outputs + run: echo ${{ steps.vars.outputs.sha_short }} + - name: Validate gradle wrapper uses: gradle/wrapper-validation-action@v1 @@ -46,5 +52,5 @@ jobs: if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS uses: actions/upload-artifact@v2 with: - name: dust-fabric-${{ github.sha }} + name: dust-fabric-${{ steps.vars.outputs.sha_short }} path: build/libs/*[0-9].jar \ No newline at end of file