Skip to content

Commit

Permalink
fix docs push warring when there are no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maximthomas committed Oct 29, 2024
1 parent efb00ec commit 717fb98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,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

0 comments on commit 717fb98

Please sign in to comment.