build: fix changelog format in cut.sh

This commit is contained in:
Zaiming (Stone) Shi 2023-03-24 16:46:05 +01:00
parent 2cca6b1d5d
commit a3f6036721
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ generate_changelog () {
fi
./scripts/rel/format-changelog.sh -b "${from_tag}" -l 'en' -v "$TAG" > "changes/${TAG}.en.md"
./scripts/rel/format-changelog.sh -b "${from_tag}" -l 'zh' -v "$TAG" > "changes/${TAG}.zh.md"
if [ -n "$(git diff --stat)" ]; then
git add changes/"${TAG}".*.md
if [ -n "$(git diff --staged --stat)" ]; then
git commit -m "docs: Generate changelog for ${TAG}"
else
logmsg "No changelog update."