Skip to content

Commit

Permalink
try to remove new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Li committed Dec 8, 2023
1 parent d6d319a commit a162235
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ 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')
CHECKSUM=$(printf '%s\n' "$CHECKSUM" | sed -e 's/[]\/$*.^[]/\\&/g')
CHECKSUM=$(echo "$CHECKSUM" | tr -d '\r\n')
echo "SHA512 Checksum: $CHECKSUM"
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
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
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit a162235

Please sign in to comment.