Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit c95936b

Browse files
committed
[Build] Another attempt to properly escape changelog.
1 parent b4e74fd commit c95936b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

housekeeping/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ echo "($?) Previous tag: $PREVIOUS_TAG_NAME"
1717
LAST_DRAFT_ID=$(curl "https://$GH_TOKEN:[email protected]/repos/shockone/black-screen/releases" | python -c "import json,sys; array=json.load(sys.stdin); print array[0]['id'];")
1818
echo "($?) Last draft ID: $LAST_DRAFT_ID"
1919

20-
BODY=$(git log --pretty=format:'* %h% %d %s\\n' --abbrev-commit --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME)
20+
BODY=$(git log --pretty=format:'%h% %d %s\\n' --abbrev-commit --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME)
2121
echo "($?) Body:"
2222
echo $BODY
2323

24-
ESCAPED_BODY=$(echo $BODY | python -c "import json,sys; print json.dumps(sys.stdin.read())[1:-1];")
24+
ESCAPED_BODY=$(echo $BODY | tr '"' "'")
2525
echo "($?) Escaped body:"
2626
echo $ESCAPED_BODY
2727

0 commit comments

Comments
 (0)