diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 468ed06..ec107b7 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -100,6 +100,9 @@ jobs: git config --local user.email "github@users.noreply.github.com" git config --local user.name "github-action-validate" git add doc - git commit -m "Update documentation" - git push --set-upstream origin gh-pages + git diff --cached --quiet + if [ $? -eq 1 ]; then + git commit -m "Update documentation" + git push --set-upstream origin gh-pages + fi if: github.event_name != 'pull_request'