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

Commit

Permalink
Escape release body using python.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed May 31, 2016
1 parent a337895 commit 35822e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion housekeeping/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BODY=$(git log --oneline --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME)
echo "($?) Body:"
echo $BODY

ESCAPED_BODY=$(echo $BODY | grep -v '\[ci skip\]' | tr '\n' '|' | sed 's/|/\\n/g' | sed 's/"/\\"/g')
ESCAPED_BODY=$(echo $BODY | grep -v '\[ci skip\]' | python -c "import json,sys; print json.dumps(sys.stdin.read());")
echo "($?) Escaped body:"
echo $ESCAPED_BODY

Expand Down

0 comments on commit 35822e1

Please sign in to comment.