Skip to content

Fetch Zotero Data

Fetch Zotero Data #2

Workflow file for this run

name: Fetch Zotero Data
on:
workflow_dispatch:
jobs:
fetch_data:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
working-directory: ./scripts/nodejs
run: yarn install
- name: Download Zotero BIBJSON for Presentations
working-directory: ./scripts/nodejs
run: node zotero.js download-collection 1486708 8PHTET8E _data/presentations.json
env:
ZOTERO_TOKEN: ${{ secrets.ZOTERO_TOKEN }}
- name: Download Zotero BIBJSON for Publications
working-directory: ./scripts/nodejs
run: node zotero.js download-collection 1486708 SPFKFKMN _data/publications.json
env:
ZOTERO_TOKEN: ${{ secrets.ZOTERO_TOKEN }}
- name: Download Zotero BIBJSON for Datasets
working-directory: ./scripts/nodejs
run: node zotero.js download-collection 1486708 UK7WNFH7 _data/datasets.json
env:
ZOTERO_TOKEN: ${{ secrets.ZOTERO_TOKEN }}
- name: Commit and push if it changed
uses: stefanzweifel/git-auto-commit-action@v5