chore: allow untracked files to exist when cutting release

This commit is contained in:
Zaiming (Stone) Shi 2023-03-09 17:00:30 +01:00
parent b0e6b290ff
commit 9bba9b47c7
1 changed files with 6 additions and 3 deletions

View File

@ -246,9 +246,12 @@ generate_changelog () {
fi 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 'en' -v "$TAG" > "changes/${TAG}.en.md"
./scripts/rel/format-changelog.sh -b "${from_tag}" -l 'zh' -v "$TAG" > "changes/${TAG}.zh.md" ./scripts/rel/format-changelog.sh -b "${from_tag}" -l 'zh' -v "$TAG" > "changes/${TAG}.zh.md"
## allow no diff in changelogs if [ -n "$(git diff --stat)" ]; then
git add changes/"${TAG}".*.md >/dev/null 2>&1 || true git add changes/"${TAG}".*.md
[ -n "$(git status -s)" ] && git commit -m "docs: Generate changelog for ${TAG}" git commit -m "docs: Generate changelog for ${TAG}"
else
logmsg "No changelog update."
fi
} }
if [ "$DRYRUN" = 'yes' ]; then if [ "$DRYRUN" = 'yes' ]; then