Update lint-checks.yaml

This commit is contained in:
Alexandre
2022-01-22 23:43:37 +01:00
committed by GitHub
parent c3c61372e0
commit 01163790f1

View File

@@ -22,8 +22,8 @@ jobs:
run: |
for files in ${{ steps.changed_files.outputs.all }}; do
if [[ "$(basename ${files})" == "Dockerfile" ]]; then
echo "Hadolint ${{ steps.changed_files.outputs.all }}"
hadolint "${{ steps.changed_files.outputs.all }}"
echo "Hadolint $files"
hadolint "$files"
fi
done
@@ -41,9 +41,9 @@ jobs:
- name: 🔎 Run ShellCheck
run: |
for files in ${{ steps.changed_files.outputs.all }}; do
if [[ "$(basename ${files})" == *".sh* ]]; then
echo "Spellcheck ${{ steps.changed_files.outputs.all }}"
hadolint "${{ steps.changed_files.outputs.all }}"
if [[ "$files" == *".sh* ]]; then
echo "Spellcheck $files"
spellcheck "$files"
fi
done