Update lint-checks.yaml

This commit is contained in:
Alexandre
2022-01-22 21:53:29 +01:00
committed by GitHub
parent 2a670f6652
commit e1f15c455c

View File

@@ -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