diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml index 3cf97240ae..5499693f2f 100644 --- a/.github/workflows/markdown.yml +++ b/.github/workflows/markdown.yml @@ -38,7 +38,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add . - git commit -m "Add markdown changes" + git diff-index --quiet HEAD || git commit -m "Add markdown changes" - name: Push changes uses: ad-m/github-push-action@master