Collect AGNTCY Org Repo Statistics #83
This file contains hidden or 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: Collect AGNTCY Org Repo Statistics | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # daily at midnight UTC | |
| workflow_dispatch: | |
| jobs: | |
| collect-stats: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r .github/scripts/requirements.txt | |
| playwright install chromium | |
| - name: Collect org repo statistics | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} | |
| run: | | |
| python .github/scripts/collect_org_stats.py | |
| - name: Collect PyPI package statistics | |
| run: | | |
| python .github/scripts/collect_pypi_stats_full.py | |
| - name: Collect GHCR container download stats | |
| run: | | |
| python .github/scripts/scrape_ghcr_downloads_playwright.py | |
| - name: Upload all statistics artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: agntcy-all-stats | |
| path: | | |
| .github/scripts/agntcy_org_stats.csv | |
| .github/scripts/agntcy_org_stats_report.md | |
| .github/scripts/agntcy_pypi_stats_full.csv | |
| .github/scripts/agntcy_pypi_stats_report.md | |
| .github/scripts/agntcy_ghcr_downloads.csv | |
| .github/scripts/agntcy_ghcr_downloads_report.md |