Skip to content

Update the demo

Update the demo #1

name: analytics | Historical Import of Cognee Stats
on: pull_request
#on:
# workflow_dispatch:
jobs:
import_stats:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Dependencies
run: |
pip install requests posthog
- name: Run Historical Import Script
env:
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
POSTHOG_API_HOST: ${{ secrets.POSTHOG_API_HOST }}
run: |
cd tools # Change to the 'tools' directory
python historical_import_cognee_stats.py