diff --git a/.github/workflows/gen-ref-pages.yml b/.github/workflows/gen-ref-pages.yml index ab83b21c..ee8cf048 100644 --- a/.github/workflows/gen-ref-pages.yml +++ b/.github/workflows/gen-ref-pages.yml @@ -52,7 +52,7 @@ jobs: git config --global user.email "devops@withampersand.com" git config --global user.name "Ampersand Ops" git add src/ - git commit -m "[ampersand-ops] auto: update documentation with latest api reference" + git diff --cached --quiet || git commit -m "[ampersand-ops] auto: update documentation with latest api reference" git remote set-url origin https://x-access-token:${{ secrets.AMPERSAND_OPS_PAT }}@github.com/${{ github.repository }} git push origin HEAD:main env: