Files
Kilo-Org_kilocode/.github/workflows/stats.yml
T
Catriel Müller 8a1701ba61 Depot runners (#65)
* refactor: depot runners

* refactor: update image
2026-01-29 16:13:04 +01:00

38 lines
1007 B
YAML

name: stats
on:
schedule:
- cron: "0 12 * * *" # Run daily at 12:00 UTC
workflow_dispatch: # Allow manual trigger
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
stats:
# kilocode_change start - disabled for kilo-cli fork (OpenCode stats tracking)
if: false
# kilocode_change end - original: if: github.repository == 'Kilo-Org/kilo'
runs-on: depot-ubuntu-24.04-4
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: ./.github/actions/setup-bun
- name: Run stats script
run: bun script/stats.ts
- name: Commit stats
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add STATS.md
git diff --staged --quiet || git commit -m "ignore: update download stats $(date -I)"
git push
env:
POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}