Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobrauchtgit authored Mar 11, 2024
2 parents b414171 + cebe8c3 commit 973a1bf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/console-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ jobs:

- name: Check for console.log statements
run: |
if grep -rnw 'src/' -e 'console.log'; then
echo "console.log statement found!"
LOGS_FOUND=0
while IFS= read -r line
do
echo "::error ::console.log found: $line"
LOGS_FOUND=1
done < <(grep -rnw 'src/' -e 'console.log')
if [ "$LOGS_FOUND" -ne "0" ]; then
exit 1
else
echo "No console.log statements found."
fi

0 comments on commit 973a1bf

Please sign in to comment.