docs: replace static star history with live links

This commit is contained in:
haixin.yang committed 2026-07-13 16:14:02 +08:00
1 parent 0e9fef6df9
commit fe799d322f
5 files changed
+6 -189

No files matched your search

-38
View File
@@ -1,38 +0,0 @@
name: Update Star History
on:
schedule:
- cron: '17 2 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: update-star-history
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Generate chart from GitHub stargazer data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/update-star-history.mjs
- name: Commit updated chart
run: |
if git diff --quiet -- docs/star-history.svg; then
echo "Star history is already current."
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/star-history.svg
git commit -m "docs: update star history [skip ci]"
git push