From 12faaaced89dd5b8c1b5692fbff7cb491a60a885 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Fri, 7 Apr 2023 20:31:33 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BB=85=E5=9C=A8wiki=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-wiki.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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