From 66bb10c8c6989bd929cfe950886975522ca984bc Mon Sep 17 00:00:00 2001 From: Cyril Date: Wed, 23 Oct 2024 15:25:54 +0200 Subject: [PATCH] test --- .github/workflows/autopep8.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/autopep8.yml b/.github/workflows/autopep8.yml index 3b87bde..7dffeb1 100644 --- a/.github/workflows/autopep8.yml +++ b/.github/workflows/autopep8.yml @@ -28,16 +28,16 @@ jobs: - name: Run autopep8 on Python files run: | - autopep8 --in-place --aggressive --aggressive --max-line-length 100 **/*.py + autopep8 --in-place --aggressive --aggressive --max-line-length 120 **/*.py - name: Check for uncommitted changes run: | git config --global user.name "github-actions" git config --global user.email "github-actions@github.com" - git status - if [ -n "$(git status --porcelain)" ]; then - git add . + git add . + if git diff-index --quiet HEAD --; then + echo "No formatting changes required." + else git commit -m "Auto-format Python code with autopep8" git push - else - echo "No formatting changes required." + fi