diff --git a/.github/workflows/sync-readme-to-wiki.yml b/.github/workflows/sync-readme-to-wiki.yml index 8fc2401a..a2107022 100644 --- a/.github/workflows/sync-readme-to-wiki.yml +++ b/.github/workflows/sync-readme-to-wiki.yml @@ -37,6 +37,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd wiki - git add . - git commit -m "Sync Docu to Wiki" - git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git + if git diff --quiet; then + echo "No changes to commit." + else + git add . + git commit -m "Sync Docu to Wiki" + git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git + fi