-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 837 Bytes
/
Copy pathmain.yml
File metadata and controls
32 lines (26 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Update README.md
on:
schedule:
- cron: '0 18 * * *' # 每天北京时间凌晨 2:00
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install feedparser requests beautifulsoup4
- name: Generate Markdown files
run: python generate_markdown.py # 新生成的脚本
- name: Commit and push
run: |
git config --local user.email "cocowool@github.com"
git config --local user.name "GitHub Action"
git add README.md
git diff --staged --quiet || git commit -m "chore: auto update [skip ci]"
git push