Update build-book-en.yaml
This commit is contained in:
4
.github/workflows/build-book-en.yaml
vendored
4
.github/workflows/build-book-en.yaml
vendored
@@ -378,7 +378,7 @@ jobs:
|
|||||||
plain_text_for_desc = strip_markdown_html(text_from_list_item)
|
plain_text_for_desc = strip_markdown_html(text_from_list_item)
|
||||||
new_description = plain_text_for_desc[:157] # Truncate for "..."
|
new_description = plain_text_for_desc[:157] # Truncate for "..."
|
||||||
if len(plain_text_for_desc) > 160:
|
if len(plain_text_for_desc) > 160:
|
||||||
new_description += "..."
|
new_description += "."
|
||||||
|
|
||||||
if new_description: # Only set description if plain_text_for_desc is not empty
|
if new_description: # Only set description if plain_text_for_desc is not empty
|
||||||
parsed_fm['description'] = new_description
|
parsed_fm['description'] = new_description
|
||||||
@@ -479,4 +479,4 @@ jobs:
|
|||||||
echo "检测到文件变更,正在提交..."
|
echo "检测到文件变更,正在提交..."
|
||||||
git commit -m "chore(i18n): Auto-translate EN content with FM updates"
|
git commit -m "chore(i18n): Auto-translate EN content with FM updates"
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user