From b43f43a72908dc99a036c915736b640c0889bc56 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Wed, 1 Jan 2025 05:01:59 +0800 Subject: [PATCH] Update docs.yml --- .github/workflows/docs.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cebb0c7..2b1bbdd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,6 +18,22 @@ jobs: fetch-depth: 0 submodules: 'recursive' + - name: Update Docs + continue-on-error: true + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git pull + git submodule update --init + git submodule update --remote + git add . + if git diff --staged --quiet; then + echo "跳过更新:子模块没有变化" + else + git commit -m "自动更新子模块 [skip ci]" + git push + fi + - name: Copy Docs shell: pwsh run: |