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 973a1bf + 969a678 commit 090d810
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/console-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@ jobs:

- name: Check for console.log statements
run: |
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')
grep -rnw 'src/' -e 'console.log' | while read line; do
echo "::warning file=${line%%:*},line=${line#*:},col=1::Found console.log"
done
if [ "$LOGS_FOUND" -ne "0" ]; then
exit 1
else
echo "No console.log statements found."
fi
# The job will complete successfully, but with warnings if console.log statements are found.

0 comments on commit 090d810

Please sign in to comment.