From b8a8f67cfebc5e321d90c5920447dc8402a2dad6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jul 2026 02:19:40 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=91=8A=E5=88=AB=E4=B8=8D=E7=A8=B3?= =?UTF-8?q?=E5=AE=9A=E7=9A=84=E7=AC=AC=E4=B8=89=E6=96=B9=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E7=BA=BF=E6=9C=AC=E5=9C=B0=E8=87=AA=E6=89=98?= =?UTF-8?q?=E7=AE=A1=20Star=20=E8=B6=8B=E5=8A=BF=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9F=A9=E9=98=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/star_history.yml | 27 +++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/star_history.yml diff --git a/.github/workflows/star_history.yml b/.github/workflows/star_history.yml new file mode 100644 index 00000000..353b102b --- /dev/null +++ b/.github/workflows/star_history.yml @@ -0,0 +1,27 @@ +name: Generate Star History + +on: + schedule: + - cron: '0 0 * * *' # 每天 UTC 零点自动触发执行 + workflow_dispatch: # 允许您在 GitHub 网页上手动点击运行 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Generate Star History SVG + uses: dyte-io/star-history-action@v1.0.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + output: 'data/star_history.svg' + + - name: Commit & Push Changes + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add data/star_history.svg + git commit -m "chore: 自动化更新 Star 趋势图" || exit 0 + git push origin main diff --git a/README.md b/README.md index e20aa388..182a8f65 100644 --- a/README.md +++ b/README.md @@ -154,4 +154,4 @@ bash <(curl -sL https://raw.githubusercontent.com/hotyue/IP-Sentinel/legacy/core ## Stargazers over time -[![Stargazers over time](https://starchart.cc/hotyue/IP-Sentinel.svg?variant=adaptive)](https://starchart.cc/hotyue/IP-Sentinel) \ No newline at end of file +![Star History](https://raw.githubusercontent.com/hotyue/IP-Sentinel/main/data/star_history.svg) \ No newline at end of file