Skip to content

Commit

Permalink
Use SHA of previously uploaded zip
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Dec 3, 2024
1 parent 332f99b commit c078f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c078f6e

Please sign in to comment.