diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dde1477d5d..bd5376dc42 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -57,4 +57,8 @@ jobs: - name: Run ruff format run: | ruff --version - ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + if ! ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + then + echo "Please run 'ruff format' on the above files or apply the diffs below manually" + ruff format --check --quiet --diff src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + fi