-
Notifications
You must be signed in to change notification settings - Fork 40
35 lines (32 loc) · 1.51 KB
/
push_to_posthog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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