Skip to content

Commit cddede2

Browse files
authored
Fix documents deploy error (#805)
1 parent 40d53e9 commit cddede2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,8 @@ jobs:
136136
rm -rf ${REPO_NAME_LC}/modules
137137
cp -R ../${SITE_DOC_FOLDER}/target/asciidoc/antora/modules ../doc.openidentityplatform.org/${REPO_NAME_LC}
138138
git add -A
139-
git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}"
140-
git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git
139+
if ! git diff-index --quiet HEAD; then
140+
echo "committing changes to the docs repository"
141+
git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}"
142+
git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git
143+
fi

0 commit comments

Comments
 (0)