Skip to content

Commit

Permalink
Update telemetry-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akalia25 committed Apr 23, 2024
1 parent ca7f1b0 commit 0113d09
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/telemetry-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@ jobs:
shell: bash
run: |
echo "Checking for deprecated telemetry calls"
matches=$(grep -rn "logEvent\|telemetryService.log\|logEvents\|eventLogger\.log" --include="*.{js,ts,tsx,yml}")
echo "logEvent('this should get flagged')"
echo "matches: ${matches}"
if grep -rqE 'logEvent|logEvents|eventLogger\.log' .; then
echo "Found log events in modified files."
exit 1
else
echo "No log events found in modified files."
exit 0
fi
# echo "Checking for deprecated telemetry calls"
# matches=$(grep -rn "logEvent\|telemetryService.log\|logEvents\|eventLogger\.log" --include="*.{js,ts,tsx,yml}")
# echo "logEvent('this should get flagged')"
# echo "matches: ${matches}"
# run: |
# MATCHES="$(grep -rn "logEvent\|telemetryService.log\|logEvents\|eventLogger\.log" --include="*.{js,ts,tsx}")"
Expand Down

0 comments on commit 0113d09

Please sign in to comment.