From c3acbdc8fb05d41d2e6e3c779aee3ac41d8f5dd0 Mon Sep 17 00:00:00 2001 From: Tim Strazzere Date: Tue, 6 Aug 2024 13:14:28 -0700 Subject: [PATCH] (fix) change artifact name --- .github/workflows/gradle.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d443922..c694a85 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -51,8 +51,13 @@ jobs: tags: | type=sha,format=short,prefix= + - name: Extract short SHA for artifact name + id: short-sha + run: echo "sha_short=$(echo ${{ steps.meta.outputs.tags }} | cut -d: -f2)" >> $GITHUB_ENV + + - name: Upload JAR as artifact uses: actions/upload-artifact@v3 with: - name: axmlprinter-${{ steps.meta.outputs.tags }} + name: axmlprinter-${{ env.sha_short }} path: build/libs/*.jar \ No newline at end of file