File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33REPO=" $1 "
4- TAG=" $2 " | cut -c1-6
4+ TAG=" $2 "
55AUTH_TOKEN=" $3 "
66
77PRERELEASE=false
@@ -106,7 +106,9 @@ if [ "$TRAVIS" = "true" ] && [ -z "$TRAVIS_TAG" ]; then
106106 exit 0
107107fi
108108
109- echo " Creating GitHub release for $TAG "
109+ TAG_NAME=" $TAG " | cut -c1-6
110+
111+ echo " Creating GitHub release for $TAG_NAME "
110112
111113# Generate changelog either from last tag or from beginning of time
112114if [ -z " $( git tag) " ]
@@ -123,11 +125,13 @@ echo DONE
123125FORMAT_CONTENT=" $( node -p -e ' JSON.stringify(process.argv[1])' " ${CONTENT} " ) "
124126
125127echo -n " Creating new draft release... "
128+
129+
126130JSON=$( cat << EOF
127131{
128- "tag_name": "$TAG ",
132+ "tag_name": "$TAG_NAME ",
129133 "target_commitish": "master",
130- "name": "$TAG ",
134+ "name": "$TAG_NAME ",
131135 "body": $FORMAT_CONTENT ,
132136 "draft": true,
133137 "prerelease": $PRERELEASE
You can’t perform that action at this time.
0 commit comments