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
+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