Fetch Zotero Data #3
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: 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 ${{ github.workspace }}/_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 ${{ github.workspace }}/_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 ${{ github.workspace }}/_data/datasets.json' | |
env: | |
ZOTERO_TOKEN: ${{ secrets.ZOTERO_TOKEN }} | |
- name: Commit and push if it changed | |
uses: stefanzweifel/git-auto-commit-action@v5 |