sync: +7 new, ~137 updated (2026-06-09 11:28) #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Report | |
| on: | |
| push: | |
| paths: | |
| - "data/usage.ndjson" | |
| schedule: | |
| # 每月1日 UTC 00:00 自动刷新(即使没有新数据也更新时间戳) | |
| - cron: "0 0 1 * *" | |
| workflow_dispatch: # 允许手动触发 | |
| jobs: | |
| report: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Generate README | |
| run: python report.py | |
| - name: Commit README | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| # 只在 README 有变化时才提交 | |
| git diff --staged --quiet || git commit -m "report: update README [skip ci]" | |
| git push |