Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ on:
- cron: "0 6 * * 1" # 每周一
workflow_dispatch:

permissions:
contents: write

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python3 check.py
- name: 体检并刷新 star 数
run: python3 check.py --update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 提交刷新结果
if: github.event_name != 'pull_request'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git diff --quiet || { git add README.md README.en.md && git commit -m "chore: 自动刷新 star 数与更新日期" && git push; }
Loading
Loading