Skip to content

Commit

Permalink
escape parens around checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Li committed Dec 8, 2023
1 parent 1b01d6c commit 777a83b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ jobs:
run: |
CHECKSUM=$(sha512sum release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe | cut -f1 -d\ | xxd -r -p | base64)
CHECKSUM=$(echo "$CHECKSUM" | tr -d '\r\n')
CHECKSUM=$(echo -n "$CHECKSUM" | base64)
echo "SHA512 Checksum: $CHECKSUM"
cat /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^sha512:.*#sha512: $(echo "$CHECKSUM" | base64 --decode | tr -d '\n')#" /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^ sha512:.*# sha512: $(echo "$CHECKSUM" | base64 --decode | tr -d '\n')#" /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^sha512:.*#sha512: \"$CHECKSUM\"#" /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
sed -i '' -e "s#^ sha512:.*# sha512: \"$CHECKSUM\"#" /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 777a83b

Please sign in to comment.