diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index d64e1b6a..5c11e866 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -26,6 +26,8 @@ jobs: - name: Commit and Push Changes run: | cd wiki - git add . - git commit -m "Update wiki" - git push + if git diff --name-only; then + git add . + git commit -m "Update wiki" + git push + fi