Skip to content

Update Daily Papers #1541

Update Daily Papers

Update Daily Papers #1541

name: Update Daily Papers
on:
schedule:
- cron: '0 */6 * * *' # 每6小时运行一次
workflow_dispatch: # 允许手动触发
jobs:
update-papers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tenacity requests beautifulsoup4 pandas
- name: Update papers
run: python scripts/update_papers.py
- name: Commit and push if changed
run: |
git config --global user.name 'AI-Landscape Update Bot'
git config --global user.email 'noreply@github.com'
git add README.md
git diff --quiet && git diff --staged --quiet || (git commit -m "Update daily papers [skip ci]" && git push)