Files
flash-attention-prebuild-wh…/.github/workflows/update-download-stats.yml
T
Junya Morioka 1bc47b39f2 refactor: rename docs to doc and pages to docs for GitHub Pages
- Rename docs/ to doc/ (contains packages.md, release_history.md, etc.)
- Rename pages/ to docs/ (contains search page index.html)
- Update all references in README.md, workflows, and Python scripts

GitHub Pages only supports / or /docs as the source directory.
2026-01-18 01:12:22 +09:00

42 lines
1.1 KiB
YAML

name: Update Download Statistics
on:
schedule:
# Run daily at 00:00 UTC
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-stats:
name: Update download statistics and graph
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.14
- name: Install dependencies
run: |
pip install requests matplotlib
- name: Update download statistics
run: |
python update_download_stats.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add doc/data/download_history.json doc/data/download_graph.png
git diff --staged --quiet || git commit -m "chore: update download statistics
Update download statistics and graph for $(date -u +%Y-%m-%d)"
git push