Download .github/workflows/stats.yml from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 936 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/.github/workflows/stats.yml
- Command line
-
hf download hf://SaylorTwift/opencode/.github/workflows/stats.yml
-
curl -L -o stats.yml https://huggingface.co/SaylorTwift/opencode/resolve/main/.github/workflows/stats.yml
936 Bytes
| 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: | |
| if: github.repository == 'anomalyco/opencode' | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - 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 }} | |