From bd4817794a5541eee3afefbafc9c95699e43b1d8 Mon Sep 17 00:00:00 2001 From: Archy-X Date: Fri, 24 Nov 2023 22:39:38 -0700 Subject: [PATCH] Add commit hash to actions artifact --- .github/workflows/gradle.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f3019e91b..2edd5705b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,19 +1,16 @@ name: Build Plugin with Gradle - on: push: branches: [ "master" ] pull_request: branches: [ "master" ] - permissions: contents: read - +env: + COMMIT_HASH: ${{ substring(github.sha, 0, 7) }} jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Set up JDK 17 @@ -27,5 +24,9 @@ jobs: arguments: build - uses: actions/upload-artifact@v3 with: - name: AureliumSkills - path: build/libs/AureliumSkills-**.jar \ No newline at end of file + name: AureliumSkills-${{ env.COMMIT_HASH }} + path: build/libs/AureliumSkills-**.jar + - uses: actions/upload-artifact@v3 + with: + name: AuraSkills-${{ env.COMMIT_HASH }} + path: build/libs/AuraSkills-**.jar \ No newline at end of file