From 70b4e9484e5a58f53ed036e3d9c401cf6f6bb5fe Mon Sep 17 00:00:00 2001 From: AdamCalculator <156993728+AdamCalculator@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:18:49 +0300 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2cbd1ec..e2296e9 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -21,6 +21,9 @@ jobs: contents: read steps: + - name: Set environment variable + run: echo "MY_SHA_TRIM={${{ github.sha }}:0:7}" >> $GITHUB_ENV + - uses: actions/checkout@v4 - name: Set up JDK 21 uses: actions/setup-java@v4 @@ -44,12 +47,12 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: dynamicpack-fabric-builds-${{ github.ref }} + name: dynamicpack-fabric-builds-${{ github.MY_SHA_TRIM }} path: fabric/build/libs/ - uses: actions/upload-artifact@v4 with: - name: dynamicpack-common-builds-${{ github.ref }} + name: dynamicpack-common-builds-${{ github.MY_SHA_TRIM }} path: common/build/libs/ # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).