Update latex-lint.yml
This commit is contained in:
14
.github/workflows/latex-lint.yml
vendored
14
.github/workflows/latex-lint.yml
vendored
@@ -32,13 +32,21 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Linting .tex files with chktex..."
|
||||
echo "🔍 Linting .tex files with chktex..."
|
||||
FAIL=0
|
||||
|
||||
for f in $TEX_FILES; do
|
||||
chktex -q -n1 "$f" || FAIL=1
|
||||
echo "▶ Checking $f"
|
||||
# Run chktex and show output; capture error status
|
||||
if ! chktex "$f"; then
|
||||
echo "::warning file=$f::ChkTeX found issues in $f"
|
||||
FAIL=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ $FAIL -ne 0 ]; then
|
||||
echo "::error::Lint errors detected."
|
||||
echo "::error::❌ Lint errors or warnings were found in one or more .tex files above."
|
||||
exit 1
|
||||
else
|
||||
echo "✅ All files passed chktex lint."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user