mirror of
https://github.com/BillyOutlast/flash-attention-prebuild-wheels-rocm.git
synced 2026-07-01 01:37:53 -04:00
48 lines
1.3 KiB
YAML
48 lines
1.3 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 rich pandas
|
|
|
|
- name: Update download statistics
|
|
run: |
|
|
python update_download_stats.py
|
|
|
|
- name: Update README coverage
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python update_readme_coverage.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 README.md
|
|
git diff --staged --quiet || git commit -m "chore: update download statistics
|
|
|
|
Update download statistics and graph for $(date -u +%Y-%m-%d)"
|
|
git push
|