Merge pull request #10387 from ieQu1/dont-create-zh-changelog
ci(cut): Don't generate Chinese changelog
This commit is contained in:
commit
19fb9d9b99
|
@ -233,19 +233,19 @@ if [ -d "${CHECKS_DIR}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
generate_changelog () {
|
generate_changelog () {
|
||||||
local from_tag num_en num_zh
|
local from_tag
|
||||||
from_tag="${PREV_TAG:-}"
|
from_tag="${PREV_TAG:-}"
|
||||||
if [[ -z $from_tag ]]; then
|
if [[ -z $from_tag ]]; then
|
||||||
from_tag="$(./scripts/find-prev-rel-tag.sh "$PROFILE")"
|
from_tag="$(./scripts/find-prev-rel-tag.sh "$PROFILE")"
|
||||||
fi
|
fi
|
||||||
num_en=$(git diff --name-only -a "${from_tag}...HEAD" "changes" | grep -c '.en.md')
|
# num_en=$(git diff --name-only -a "${from_tag}...HEAD" "changes" | grep -c '.en.md')
|
||||||
num_zh=$(git diff --name-only -a "${from_tag}...HEAD" "changes" | grep -c '.zh.md')
|
# num_zh=$(git diff --name-only -a "${from_tag}...HEAD" "changes" | grep -c '.zh.md')
|
||||||
if [ "$num_en" -ne "$num_zh" ]; then
|
# if [ "$num_en" -ne "$num_zh" ]; then
|
||||||
echo "Number of English and Chinese changelog files added since ${from_tag} do not match."
|
# echo "Number of English and Chinese changelog files added since ${from_tag} do not match."
|
||||||
exit 1
|
# exit 1
|
||||||
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"
|
||||||
git add changes/"${TAG}".*.md
|
git add changes/"${TAG}".*.md
|
||||||
if [ -n "$(git diff --staged --stat)" ]; then
|
if [ -n "$(git diff --staged --stat)" ]; then
|
||||||
git commit -m "docs: Generate changelog for ${TAG}"
|
git commit -m "docs: Generate changelog for ${TAG}"
|
||||||
|
|
Loading…
Reference in New Issue