From cddede253784395b6fe4a3655530d45cf423f48b Mon Sep 17 00:00:00 2001 From: Maxim Thomas Date: Sat, 2 Nov 2024 10:03:25 +0300 Subject: [PATCH] Fix documents deploy error (#805) --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d14e454c87..ae5fe07eba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -136,5 +136,8 @@ jobs: rm -rf ${REPO_NAME_LC}/modules cp -R ../${SITE_DOC_FOLDER}/target/asciidoc/antora/modules ../doc.openidentityplatform.org/${REPO_NAME_LC} git add -A - git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}" - git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git + if ! git diff-index --quiet HEAD; then + echo "committing changes to the docs repository" + git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}" + git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git + fi