Update the demo #1
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: 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 |