diff options
| author | Dax Raad <[email protected]> | 2025-06-28 21:55:24 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-28 21:57:46 -0400 |
| commit | 780419ecaee93dd5be4271a8a5403a4d26925a85 (patch) | |
| tree | c5a5ecefa69b9317ef5efd2da1e8660cc9998d95 /.github | |
| parent | f0962e2d9ca90394679f729ef7f3cc39d35e67df (diff) | |
| download | opencode-780419ecaee93dd5be4271a8a5403a4d26925a85.tar.gz opencode-780419ecaee93dd5be4271a8a5403a4d26925a85.zip | |
ci: daily stats script
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/stats.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml new file mode 100644 index 000000000..8814c90f4 --- /dev/null +++ b/.github/workflows/stats.yml @@ -0,0 +1,30 @@ +name: stats + +on: + schedule: + - cron: "0 12 * * *" # Run daily at 12:00 UTC + workflow_dispatch: # Allow manual trigger + +jobs: + stats: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Run stats script + run: bun scripts/stats.ts + + - name: Commit stats + run: | + git config --local user.email "[email protected]" + git config --local user.name "GitHub Action" + git add STATS.md + git diff --staged --quiet || git commit -m "Update download stats $(date -I)" + git push |
