From 01163790f16e0a558b00efd1c84dd964c91eb6fe Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 22 Jan 2022 23:43:37 +0100 Subject: [PATCH] Update lint-checks.yaml --- .github/workflows/lint-checks.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-checks.yaml b/.github/workflows/lint-checks.yaml index 462c22cf6..3ed76e5f2 100644 --- a/.github/workflows/lint-checks.yaml +++ b/.github/workflows/lint-checks.yaml @@ -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