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

Commit dc30d0d

Browse files
committed
[Build] Don't story intermediate BODY results.
1 parent 0cb2faa commit dc30d0d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

housekeeping/deploy.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ npm version patch -m "Bump version to %s. [ci skip]"
66
npm run release
77
git push --quiet "https://$GH_TOKEN:x-oauth-basic@github.com/shockone/black-screen.git" HEAD:master --tags > /dev/null 2>&1
88

9-
echo "Git version: $(git --version)"
10-
119
TAG_NAME=$(git describe --abbrev=0)
1210
echo "($?) Current tag: $TAG_NAME"
1311

@@ -17,14 +15,10 @@ echo "($?) Previous tag: $PREVIOUS_TAG_NAME"
1715
LAST_DRAFT_ID=$(curl "https://$GH_TOKEN:x-oauth-basic@api.github.com/repos/shockone/black-screen/releases" | python -c "import json,sys; array=json.load(sys.stdin); print array[0]['id'];")
1816
echo "($?) Last draft ID: $LAST_DRAFT_ID"
1917

20-
BODY=$(git log --pretty=format:'%h% %d %s\\n' --abbrev-commit --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME)
18+
BODY=$(git log --oneline --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME | python -c "import json,sys; print json.dumps(sys.stdin.read());")
2119
echo "($?) Body:"
2220
echo $BODY
2321

24-
ESCAPED_BODY=$(echo $BODY | tr '"' "'")
25-
echo "($?) Escaped body:"
26-
echo $ESCAPED_BODY
27-
2822
curl --request PATCH "https://$GH_TOKEN:x-oauth-basic@api.github.com/repos/shockone/black-screen/releases/$LAST_DRAFT_ID" \
2923
-H "Content-Type: application/json" \
30-
-d "{\"body\":\"$ESCAPED_BODY\", \"draft\": false, \"prerelease\": true, \"tag_name\": \"$TAG_NAME\"}"
24+
-d "{\"body\": $BODY, \"draft\": false, \"prerelease\": true, \"tag_name\": \"$TAG_NAME\"}"

0 commit comments

Comments
 (0)