diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 080797f..c7ab23e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -52,6 +52,11 @@ jobs: - name: Commit changes run: | + if git diff-index --quiet HEAD; then + echo "No changes to commit." + exit 0 + fi + echo "Committing changes..." git commit -a -m "refactor(*): format code with black, isort and flake8" - name: Push changes