Skip to content

Commit

Permalink
Update lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofstica-Muhammad-Aun committed Aug 17, 2024
1 parent b61538c commit 1db5234
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
flutter analyze > analysis_result.txt
grep -v "TODO" analysis_result.txt > filtered_result.txt
cat filtered_result.txt
if [ -s filtered_result.txt ]; then
if [ -s filtered_result.txt ] && [ "$(wc -l < filtered_result.txt)" -gt 0 ]; then
echo "Linting issues found, failing the workflow."
exit 1
else
echo "No linting issues found."
fi
- name: Check Version Bump
Expand Down

0 comments on commit 1db5234

Please sign in to comment.