Skip to content

Commit 6858c7e

Browse files
committed
attempt to fix the release name
1 parent 34ac348 commit 6858c7e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.scripts/publish_github_release.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
REPO="$1"
4-
TAG="$2" | cut -c1-6
4+
TAG="$2"
55
AUTH_TOKEN="$3"
66

77
PRERELEASE=false
@@ -106,7 +106,9 @@ if [ "$TRAVIS" = "true" ] && [ -z "$TRAVIS_TAG" ]; then
106106
exit 0
107107
fi
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
112114
if [ -z "$(git tag)" ]
@@ -123,11 +125,13 @@ echo DONE
123125
FORMAT_CONTENT="$(node -p -e 'JSON.stringify(process.argv[1])' "${CONTENT}")"
124126

125127
echo -n "Creating new draft release... "
128+
129+
126130
JSON=$(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

0 commit comments

Comments
 (0)