mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-23 23:20:55 +08:00
chore: 日志同步逻辑优化
This commit is contained in:
@@ -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 ""
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user