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 4c09226 commit 330d539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/telemetry-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
run: |
echo "Checking for deprecated telemetry calls"
echo "logEvent('this should get flagged')"
files_modified=$(git diff --name-only ${{ github.base_ref }} ${{ github.head_ref }})
cd ${{ github.workspace }}
files_modified=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
if [ -n "$files_modified" ]; then
echo "Modified files found: $files_modified"
if echo "$files_modified" | xargs grep -rnE 'logEvent|logEvents|eventLogger\.log'; then
Expand Down

0 comments on commit 330d539

Please sign in to comment.