mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 21:38:01 +00:00

Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Liang-Shih Lin <liangshihlin@proton.me> Co-authored-by: Dominik Engelhardt <dominikengelhardt@ymail.com> Co-authored-by: Jay V <air@live.ca> Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com>
32 lines
744 B
YAML
32 lines
744 B
YAML
name: stats
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 12 * * *" # Run daily at 12:00 UTC
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
jobs:
|
|
stats:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
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 "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
|