Skip to content

Commit e852425

Browse files
author
Michael Mrowetz
committed
#137 fix release JSON
1 parent db6ff0d commit e852425

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build-utils/release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ echo "Start Github release for ${VERSION}..."
1616
CHANGELOG="${CHANGELOG:-}"
1717
API_JSON=$(printf '{"body": "%s"}' "${CHANGELOG}")
1818

19+
# add Changlog (updated via 'changelog-custom') to staged files
20+
git add CHANGELOG.md
21+
1922
###
2023
# Github Release
2124
###
@@ -42,7 +45,7 @@ git tag "v$VERSION"
4245
git push --follow-tags
4346

4447
echo "make Github release"
45-
API_JSON=$(printf '{"tag_name": "v%s", "target_commitish": "release", "name": "v%s", "body": "%s", "draft": false, "prerelease": false}' $VERSION $VERSION $CHANGELOG)
48+
API_JSON=$(printf '{"tag_name": "v%s", "target_commitish": "release", "name": "v%s", "body": "%s", "draft": false, "prerelease": false}' "${VERSION}" "${VERSION}" "${CHANGELOG}")
4649
curl \
4750
--data "$API_JSON" \
4851
-H "Authorization: token ${GITHUB_TOKEN}" \

0 commit comments

Comments
 (0)