Skip to content

Update Star History

Update Star History #7

name: Update Star History
on:
schedule:
- cron: "17 2 * * 1"
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate chart
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 .github/scripts/update_star_history.py
- name: Commit updated chart
run: |
if git diff --quiet -- docs/assets/star-history.svg; then
echo "Star history is already up to date."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/assets/star-history.svg
git commit -m "docs: update star history chart"
git push