diff --git a/.github/workflows/black-check.yaml b/.github/workflows/black-check.yaml index a4136d7..eb741f9 100644 --- a/.github/workflows/black-check.yaml +++ b/.github/workflows/black-check.yaml @@ -41,10 +41,15 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" + echo "Checking for changes..." + git status if [ -n "$(git status --porcelain)" ]; then + echo "Changes detected. Adding and committing." git add . git commit -m "Automatically formatted code with Black and isort" git push else echo "No changes to commit." + fi +