This repository was archived by the owner on May 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ npm version patch -m "Bump version to %s. [ci skip]"
6
6
npm run release
7
7
git push --quiet " https://$GH_TOKEN :x-oauth-basic@github.com/shockone/black-screen.git" HEAD:master --tags > /dev/null 2>&1
8
8
9
- echo " Git version: $( git --version) "
10
-
11
9
TAG_NAME=$( git describe --abbrev=0)
12
10
echo " ($? ) Current tag: $TAG_NAME "
13
11
@@ -17,14 +15,10 @@ echo "($?) Previous tag: $PREVIOUS_TAG_NAME"
17
15
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'];" )
18
16
echo " ($? ) Last draft ID: $LAST_DRAFT_ID "
19
17
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()); " )
21
19
echo " ($? ) Body:"
22
20
echo $BODY
23
21
24
- ESCAPED_BODY=$( echo $BODY | tr ' "' " '" )
25
- echo " ($? ) Escaped body:"
26
- echo $ESCAPED_BODY
27
-
28
22
curl --request PATCH " https://$GH_TOKEN :x-oauth-basic@api.github.com/repos/shockone/black-screen/releases/$LAST_DRAFT_ID " \
29
23
-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 \" }"
You can’t perform that action at this time.
0 commit comments