-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (33 loc) · 1.29 KB
/
zotero.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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