Skip to content

Commit 6cb9893

Browse files
authored
Fix doc push error (#83)
1 parent 3f88527 commit 6cb9893

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
rm -rf ${REPO_NAME_LC}/modules
104104
cp -R ../${SITE_DOC_FOLDER}/target/asciidoc/antora/modules ../doc.openidentityplatform.org/${REPO_NAME_LC}
105105
git add -A
106-
git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}"
107-
git push --force
108-
106+
if ! git diff-index --quiet HEAD; then
107+
echo "committing changes to the docs repository"
108+
git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}"
109+
git push --force
110+
fi

0 commit comments

Comments
 (0)