From f30f2c141f9aa02f1185df63f9c4621e1298ae4e Mon Sep 17 00:00:00 2001 From: g_it Date: Wed, 8 Apr 2026 13:48:29 +0200 Subject: [PATCH] . --- .github/workflows/lint.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0333860..79fb732 100755 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,25 +32,22 @@ jobs: if command -v vale &>/dev/null && [[ -f ".vale.ini" ]]; then echo "Running Vale on all Markdown files..." FAILED=0 - find . -type f -name "*.md" | while read -r file; do + + while IFS= read -r file; do echo "Checking $file" - vale_output=$(vale "$file" 2>&1) - VALE_EXIT_CODE=$? - if [ $VALE_EXIT_CODE -ne 0 ]; then - echo "Vale found issues in $file:" - echo "$vale_output" + if ! vale "$file"; then + echo "Vale found issues in $file" FAILED=1 else echo "Vale check passed for $file" fi - done + done < <(find . -type f -name "*.md") if [ $FAILED -eq 1 ]; then echo "Vale check failed. See output above." exit 1 - else - echo "Vale check completed successfully." fi + echo "Vale check completed successfully." else echo "Vale not installed or .vale.ini missing. Skipping Vale." fi