Skip to content

Update Papers

Update Papers #109

Workflow file for this run

name: Update Papers
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches: [ main ]
permissions:
contents: write
jobs:
update:
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.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run ArXiv scraper
run: |
python scripts/arxiv_scraper.py --max-results 50 --days-back 30
- name: Update README with latest papers
run: |
python scripts/update_readme.py
- name: Refresh the auto-curated Extended Paper Index
run: |
python scripts/expand_papers.py
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git diff --staged --quiet || git commit -m "Auto-update: Fetch latest papers from arXiv"
git push