Skip to content

Update Download Chart #15

Update Download Chart

Update Download Chart #15

name: Update Download Chart
on:
schedule:
- cron: "0 6 * * 1" # Every Monday 06:00 UTC
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
jobs:
update-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install matplotlib numpy requests
- name: Generate chart
run: python scripts/generate_download_chart.py
- name: Commit updated chart
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/assets/downloads.svg
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update download chart [skip ci]"
git push
fi