feat: switch to static Gist SVG for activity chart (no more daily README commits)
This commit is contained in:
46
.github/workflows/update-chart.yml
vendored
46
.github/workflows/update-chart.yml
vendored
@@ -1,46 +0,0 @@
|
|||||||
name: Update Activity Chart
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# 每天北京时间 01:10 运行 (UTC 17:10)
|
|
||||||
- cron: '10 17 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-chart:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install requests python-dotenv
|
|
||||||
|
|
||||||
- name: Generate stats and update chart
|
|
||||||
env:
|
|
||||||
OPENWEBUI_API_KEY: ${{ secrets.OPENWEBUI_API_KEY }}
|
|
||||||
OPENWEBUI_USER_ID: ${{ secrets.OPENWEBUI_USER_ID }}
|
|
||||||
GIST_TOKEN: ${{ secrets.GIST_TOKEN }}
|
|
||||||
GIST_ID: ${{ secrets.GIST_ID }}
|
|
||||||
run: |
|
|
||||||
python scripts/openwebui_stats.py
|
|
||||||
|
|
||||||
- name: Commit chart updates
|
|
||||||
run: |
|
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git config --local user.name "github-actions[bot]"
|
|
||||||
git add README.md README_CN.md docs/community-stats.md docs/community-stats.zh.md
|
|
||||||
git diff --staged --quiet || git commit -m "chore: daily update activity chart [skip ci]"
|
|
||||||
git push
|
|
||||||
@@ -31,7 +31,7 @@ A collection of enhancements, plugins, and prompts for [OpenWebUI](https://githu
|
|||||||
| 6️⃣ | [Markdown Normalizer](https://openwebui.com/posts/markdown_normalizer_baaa8732) |  |  |  |  |
|
| 6️⃣ | [Markdown Normalizer](https://openwebui.com/posts/markdown_normalizer_baaa8732) |  |  |  |  |
|
||||||
|
|
||||||
### 📈 Total Downloads Trend
|
### 📈 Total Downloads Trend
|
||||||

|

|
||||||
|
|
||||||
*See full stats and charts in [Community Stats Report](./docs/community-stats.md)*
|
*See full stats and charts in [Community Stats Report](./docs/community-stats.md)*
|
||||||
<!-- STATS_END -->
|
<!-- STATS_END -->
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ OpenWebUI 增强功能集合。包含个人开发与收集的插件、提示词
|
|||||||
| 6️⃣ | [Markdown Normalizer](https://openwebui.com/posts/markdown_normalizer_baaa8732) |  |  |  |  |
|
| 6️⃣ | [Markdown Normalizer](https://openwebui.com/posts/markdown_normalizer_baaa8732) |  |  |  |  |
|
||||||
|
|
||||||
### 📈 总下载量累计趋势
|
### 📈 总下载量累计趋势
|
||||||

|

|
||||||
|
|
||||||
*完整统计与趋势图请查看 [社区统计报告](./docs/community-stats.zh.md)*
|
*完整统计与趋势图请查看 [社区统计报告](./docs/community-stats.zh.md)*
|
||||||
<!-- STATS_END -->
|
<!-- STATS_END -->
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
> 
|
> 
|
||||||
|
|
||||||
### 📈 Total Downloads Trend
|
### 📈 Total Downloads Trend
|
||||||

|

|
||||||
|
|
||||||
> *Blue: Downloads | Purple: Views (Real-time dynamic)*
|
> *Blue: Downloads | Purple: Views (Real-time dynamic)*
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
> 
|
> 
|
||||||
|
|
||||||
### 📈 总下载量累计趋势
|
### 📈 总下载量累计趋势
|
||||||

|

|
||||||
|
|
||||||
> *蓝色: 总下载量 | 紫色: 总浏览量 (实时动态生成)*
|
> *蓝色: 总下载量 | 紫色: 总浏览量 (实时动态生成)*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user