Skip to content

Commit

Permalink
Update test-2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal authored May 23, 2024
1 parent 1d9f28e commit 83fdb85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
# Get the value of the environment variable
value="${!var}"
realpath="$( realpath "$value" 2>/dev/null )"
[[ -z "${realpath}" || ! -f "${realpath}" ]] && continue
echo "Testing '$value'"
file --mime-encoding "$value"
file --mime-encoding "$realpath"
# Check if the value is a readable file
if file -b "$value" | grep -q "text" ; then
Expand Down

0 comments on commit 83fdb85

Please sign in to comment.