Skip to content

Paper sync

Paper sync #54

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: ${{secret.ZOTERO_API}}

Check failure on line 27 in .github/workflows/Paper2Zotero.yml

View workflow run for this annotation

GitHub Actions / Paper sync

Invalid workflow file

The workflow is not valid. .github/workflows/Paper2Zotero.yml (Line: 27, Col: 23): Unrecognized named-value: 'secret'. Located at position 1 within expression: secret.ZOTERO_API .github/workflows/Paper2Zotero.yml (Line: 28, Col: 26): Unrecognized named-value: 'ZOTERO_LIB_ID'. Located at position 1 within expression: ZOTERO_LIB_ID
ZOTERO_LIB_ID: ${{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"