diff --git a/.github/workflows/doc_generate.yaml b/.github/workflows/doc_generate.yaml index 0d5c8d4..4d4e3f2 100644 --- a/.github/workflows/doc_generate.yaml +++ b/.github/workflows/doc_generate.yaml @@ -54,12 +54,13 @@ jobs: git config user.email "github-actions@github.com" git config user.name "Github Actions" git add . - git diff --staged --quiet || { + # Check for changes + if git diff --staged --quiet; then echo "No changes to commit" - exit 0 - } - git commit -am "Bump version to ${{ env.VERSION_NAME }}" - git push origin develop + else + git commit -m "Bump version to ${{ env.VERSION_NAME }}" + git push origin develop + fi generateDocs: