mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-21 09:47:13 +00:00
ci: 解决sync-wiki.yml异常退出问题
This commit is contained in:
@@ -30,11 +30,16 @@ jobs:
|
|||||||
- name: Copy res/wiki content to wiki
|
- name: Copy res/wiki content to wiki
|
||||||
run: |
|
run: |
|
||||||
cp -r res/wiki/* wiki/
|
cp -r res/wiki/* wiki/
|
||||||
|
- name: Check for changes
|
||||||
|
run: |
|
||||||
|
cd wiki
|
||||||
|
if git diff --quiet; then
|
||||||
|
echo "No changes to commit."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
- name: Commit and Push Changes
|
- name: Commit and Push Changes
|
||||||
run: |
|
run: |
|
||||||
cd wiki
|
cd wiki
|
||||||
if git diff --name-only; then
|
git add .
|
||||||
git add .
|
git commit -m "Update wiki"
|
||||||
git commit -m "Update wiki"
|
git push
|
||||||
git push
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user