Skip to content

Commit

Permalink
try escaping the checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Li committed Dec 8, 2023
1 parent 8302d93 commit d6d319a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ jobs:
- name: Generate signed checksum
run: |
CHECKSUM=$(sha512sum release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe | cut -f1 -d\ | xxd -r -p | base64)
ESCAPED_CHECKSUM=$(printf '%s\n' "$CHECKSUM" | sed -e 's/[]\/$*.^[]/\\&/g')
echo "SHA512 Checksum: $CHECKSUM"
sed -i '' -e "s#^sha512:.*#sha512: $CHECKSUM#" release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^ sha512:.*# sha512: $CHECKSUM#" release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^sha512:.*#sha512: $ESCAPED_CHECKSUM#" release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^ sha512:.*# sha512: $ESCAPED_CHECKSUM#" release-sentry-client-desktop-windows-latest/latest.yml
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit d6d319a

Please sign in to comment.