From e1f15c455c48044b593c913c902028ca7f09d5d1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 22 Jan 2022 21:53:29 +0100 Subject: [PATCH] Update lint-checks.yaml --- .github/workflows/lint-checks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-checks.yaml b/.github/workflows/lint-checks.yaml index adf88a4d2..1f45c729c 100644 --- a/.github/workflows/lint-checks.yaml +++ b/.github/workflows/lint-checks.yaml @@ -23,8 +23,8 @@ jobs: - name: 🔎 Run hadolint run: for file in ${{ env.HADOLINT_FILES }}; do - if [[ "${{ steps.changed_files.outputs.all }}" == *"$file"* ]]; then - hadolint "${{ steps.changed_files.outputs.all }}" + if [[ "${{ steps.changed_files.outputs.all }}" == "$file" ]]; then + hadolint "$( basename ${{ steps.changed_files.outputs.all }})" fi done