Skip to content

Commit

Permalink
Update docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat authored Dec 31, 2024
1 parent 814bbc8 commit b43f43a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit b43f43a

Please sign in to comment.