-
Notifications
You must be signed in to change notification settings - Fork 35
50 lines (42 loc) · 1.45 KB
/
Copy pathorg-stats.yml
File metadata and controls
50 lines (42 loc) · 1.45 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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