chore: allow untracked files to exist when cutting release
This commit is contained in:
parent
b0e6b290ff
commit
9bba9b47c7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue