Skip to content

Commit

Permalink
attempt to fix the release name
Browse files Browse the repository at this point in the history
  • Loading branch information
TurBoss committed Feb 20, 2021
1 parent 34ac348 commit 6858c7e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .scripts/publish_github_release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

REPO="$1"
TAG="$2" | cut -c1-6
TAG="$2"
AUTH_TOKEN="$3"

PRERELEASE=false
Expand Down Expand Up @@ -106,7 +106,9 @@ if [ "$TRAVIS" = "true" ] && [ -z "$TRAVIS_TAG" ]; then
exit 0
fi

echo "Creating GitHub release for $TAG"
TAG_NAME="$TAG" | cut -c1-6

echo "Creating GitHub release for $TAG_NAME"

# Generate changelog either from last tag or from beginning of time
if [ -z "$(git tag)" ]
Expand All @@ -123,11 +125,13 @@ echo DONE
FORMAT_CONTENT="$(node -p -e 'JSON.stringify(process.argv[1])' "${CONTENT}")"

echo -n "Creating new draft release... "


JSON=$(cat <<EOF
{
"tag_name": "$TAG",
"tag_name": "$TAG_NAME",
"target_commitish": "master",
"name": "$TAG",
"name": "$TAG_NAME",
"body": $FORMAT_CONTENT,
"draft": true,
"prerelease": $PRERELEASE
Expand Down

0 comments on commit 6858c7e

Please sign in to comment.