chore: 日志同步逻辑优化

This commit is contained in:
digua
2026-04-13 19:47:53 +08:00
parent dd88c499b3
commit 3c022b069a
10 changed files with 68 additions and 53 deletions
+3 -3
View File
@@ -276,8 +276,8 @@ jobs:
echo "Current version: $CURRENT_VERSION"
# 从 changelog JSON 中提取最新版本的 summary
EN_SUMMARY=$(jq -r '.[0].summary' docs/changelogs_en.json)
CN_SUMMARY=$(jq -r '.[0].summary' docs/changelogs_cn.json)
EN_SUMMARY=$(jq -r '.[0].summary' docs/public/changelogs/en.json)
CN_SUMMARY=$(jq -r '.[0].summary' docs/public/changelogs/cn.json)
echo "EN summary: $EN_SUMMARY"
echo "CN summary: $CN_SUMMARY"
@@ -294,7 +294,7 @@ jobs:
echo ""
echo "---"
echo ""
echo "Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_cn.json) | [日本語](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_ja.json)"
echo "Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/cn.json) | [日本語](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/ja.json)"
echo ""
echo "---"
echo ""
+7 -1
View File
@@ -27,15 +27,21 @@ jobs:
rsync -av --delete \
--exclude='.vitepress' \
--exclude='public' \
--exclude='README*' \
docs/ chatlab-fun/docs/
- name: Sync public assets
run: |
rsync -av \
docs/public/ chatlab-fun/public/
- name: Commit and push
id: push
working-directory: chatlab-fun
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git add docs/ public/
if git diff --cached --quiet; then
echo "No changes to commit"
echo "pushed=false" >> $GITHUB_OUTPUT