From a3f60367215c20b40cb50972da54805716be5881 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Fri, 24 Mar 2023 16:46:05 +0100 Subject: [PATCH] build: fix changelog format in cut.sh --- scripts/rel/cut.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rel/cut.sh b/scripts/rel/cut.sh index 08fa37192..71033035a 100755 --- a/scripts/rel/cut.sh +++ b/scripts/rel/cut.sh @@ -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 + 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."