Skip to content

Commit 630fc51

Browse files
committed
Use SHA of previously uploaded zip
1 parent bd259c1 commit 630fc51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-sdk.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ jobs:
6060
- name: Compute SHA256 of the uploaded artifact (universal)
6161
id : universal-digest
6262
run : |
63-
echo "digest=$(sha256sum ./dist/target/scala3-${{env.THISBUILD_VERSION}}.zip | cut -d " " -f 1)" >> "$GITHUB_OUTPUT"
63+
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
64+
echo "digest=$(sha256sum artifact.zip | cut -d " " -f 1)" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)