Update Publications #24
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 Publications | |
| on: | |
| workflow_dispatch: # allow manual runs | |
| schedule: | |
| - cron: "0 3 * * *" # every night at 3 AM UTC | |
| push: | |
| paths: | |
| - "paper_ids.txt" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Generate publication list | |
| run: python scripts/fetch_papers.py | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git add index.md | |
| git commit -m "Update publications" || echo "No changes" | |
| git push |