mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Update weekly-supelinter.yaml
This commit is contained in:
9
.github/workflows/weekly-supelinter.yaml
vendored
9
.github/workflows/weekly-supelinter.yaml
vendored
@@ -45,12 +45,15 @@ jobs:
|
||||
FIX_PYTHON_BLACK: true
|
||||
FIX_PYTHON_ISORT: true
|
||||
FIX_PYTHON_RUFF: true
|
||||
# Add more FIX_ variables as needed
|
||||
|
||||
- name: Check for linting changes
|
||||
id: changed
|
||||
run: |
|
||||
git diff --quiet || echo "changed=true" >> "$GITHUB_OUTPUT"
|
||||
if ! git diff --quiet; then
|
||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "changed=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Create New Pull Request If Needed
|
||||
if: steps.changed.outputs.changed == 'true'
|
||||
@@ -63,3 +66,5 @@ jobs:
|
||||
signoff: true
|
||||
delete-branch: true
|
||||
branch: lint/autofix
|
||||
body: |
|
||||
This pull request was automatically created by the GitHub Actions Super-Linter workflow to fix detected linting issues.
|
||||
|
||||
Reference in New Issue
Block a user