diff --git a/.github/workflows/test-2.yml b/.github/workflows/test-2.yml index 1b3c09b..1a3c9b9 100644 --- a/.github/workflows/test-2.yml +++ b/.github/workflows/test-2.yml @@ -23,7 +23,7 @@ jobs: value="${!var}" # Check if the value is a readable file - if [[ -r "$value" ]]; then + if [[ -f "$value" && -r "${value}" ]] && file -b "$value" | grep -q "text"; then # Print the header with the realpath of the file echo "File: $(realpath "$value")"