Repository Traffic to PostHog #6045
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: Repository Traffic to PostHog | |
on: | |
schedule: | |
- cron: '0 * * * *' # Run daily at midnight | |
workflow_dispatch: | |
jobs: | |
push_to_posthog: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'poetry' | |
- run: poetry install | |
working-directory: scripts | |
- run: poetry run push_pypi_downloads --package eidolon-ai-sdk --api-key ${{ secrets.POSTHOG_API_KEY }} --project-key ${{ secrets.POSTHOG_PROJECT_KEY }} | |
working-directory: scripts | |
- run: | | |
chmod +x bin/push_github.sh | |
bin/push_github.sh eidolon-ai/eidolon ${{ secrets.GH_PAT }} ${{ secrets.POSTHOG_API_KEY }} ${{ secrets.POSTHOG_PROJECT_KEY }} | |
bin/push_github.sh eidolon-ai/agent-machine ${{ secrets.GH_PAT }} ${{ secrets.POSTHOG_API_KEY }} ${{ secrets.POSTHOG_PROJECT_KEY }} | |
bin/push_github.sh eidolon-ai/eidolon-quickstart ${{ secrets.GH_PAT }} ${{ secrets.POSTHOG_API_KEY }} ${{ secrets.POSTHOG_PROJECT_KEY }} | |
bin/push_github.sh eidolon-ai/eidolon-git-search ${{ secrets.GH_PAT }} ${{ secrets.POSTHOG_API_KEY }} ${{ secrets.POSTHOG_PROJECT_KEY }} | |
bin/push_github.sh eidolon-ai/web-researcher ${{ secrets.GH_PAT }} ${{ secrets.POSTHOG_API_KEY }} ${{ secrets.POSTHOG_PROJECT_KEY }} | |
working-directory: scripts |