mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update lint-checks.yaml
This commit is contained in:
25
.github/workflows/lint-checks.yaml
vendored
25
.github/workflows/lint-checks.yaml
vendored
@@ -29,23 +29,24 @@ jobs:
|
|||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: koalaman/shellcheck-alpine@latest
|
||||||
steps:
|
steps:
|
||||||
- name: ↩️ Checkout
|
- name: ↩️ Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed_files
|
||||||
|
uses: jitterbit/get-changed-files@v1
|
||||||
|
|
||||||
- name: 📂 Detect chanced files
|
|
||||||
id: filter
|
|
||||||
uses: dorny/paths-filter@v2.9.0
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
- '**/*.sh'
|
|
||||||
- '**/cont-init.d/*'
|
|
||||||
- '**/services.d/*'
|
|
||||||
- name: 🔎 Run ShellCheck
|
- name: 🔎 Run ShellCheck
|
||||||
if: steps.filter.outputs.shell == 'true'
|
run: |
|
||||||
uses: ludeeus/action-shellcheck@1.1.0
|
for files in ${{ steps.changed_files.outputs.all }}; do
|
||||||
with:
|
if [[ "$(basename ${files})" == *".sh* ]]; then
|
||||||
additional_files: ${{ steps.filter.outputs.shell_files }}
|
echo "Spellcheck ${{ steps.changed_files.outputs.all }}"
|
||||||
|
hadolint "${{ steps.changed_files.outputs.all }}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
markdownlint:
|
markdownlint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user