From fcfa7a7915219b940fd97bb3e38db441d9854881 Mon Sep 17 00:00:00 2001 From: kaeeraa <kaeeraa@nebula-nook.ru> Date: Thu, 12 Dec 2024 20:59:39 +0300 Subject: [PATCH] build(python-app): add check for available commits --- .github/workflows/python-app.yml | 5 +++++ 1 file changed, 5 insertions(+) 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