Skip to content

Paper sync

Paper sync #263

Workflow file for this run

name: Paper sync
on:
workflow_dispatch:
schedule:
- cron: '0 23 * * *'
jobs:
execute-python-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
run: |
python scripts/Paper2Zotero.py
env:
ZOTERO_API: ${{secrets.ZOTERO_API}}
ZOTERO_LIB_ID: ${{secrets.ZOTERO_LIB_ID}}
- name: push
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m 'add new papers' || echo "nothing to commit"
git push || echo "nothing to push"