Update Papers #72
This file contains 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 Papers | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight UTC | |
workflow_dispatch: | |
jobs: | |
fetch-papers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' # Use the latest version of Python | |
- name: Install dependencies | |
run: | | |
pip install lxml | |
pip install nameparser | |
pip install python-dateutil | |
pip install requests | |
pip install arxiv | |
- name: Run script to fetch papers | |
run: python papers/fetch_papers.py | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Peter Lorenz" | |
git add assets/json/model_stealing_papers.json | |
git commit -m "Update papers.json" || echo "No changes to commit" | |
git push |