From c078f6ec3270466fae4caa9b24b697fade2542af Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Mon, 2 Dec 2024 22:38:32 +0100 Subject: [PATCH] Use SHA of previously uploaded zip --- .github/workflows/build-sdk.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-sdk.yml b/.github/workflows/build-sdk.yml index a4d1f25752f8..575b6c8ffe18 100644 --- a/.github/workflows/build-sdk.yml +++ b/.github/workflows/build-sdk.yml @@ -60,4 +60,5 @@ jobs: - name: Compute SHA256 of the uploaded artifact (universal) id : universal-digest run : | - echo "digest=$(sha256sum ./dist/target/scala3-${{env.THISBUILD_VERSION}}.zip | cut -d " " -f 1)" >> "$GITHUB_OUTPUT" + curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o artifact.zip -L https://api.github.com/repos/scala/scala3/actions/artifacts/${{ steps.universal.outputs.artifact-id }}/zip + echo "digest=$(sha256sum artifact.zip | cut -d " " -f 1)" >> "$GITHUB_OUTPUT"