Track User Analytics #908
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Track User Analytics | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
jobs: | |
track-users: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: NPM Clean Install | |
run: npm ci | |
- name: Run TrackUsers Script | |
run: npm run track-users | |
env: | |
PROD: true | |
SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CORNELLDTI_COURSEPLAN_PROD }} |