forked from e-alizadeh/Zotero2Readwise-Sync
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 930 Bytes
/
automation.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
name: Zotero to Readwise Automation
on:
push:
branches:
- master
schedule:
- cron: "0 3 * * *" # Runs at 03:00 AM (UTC) every day (Check https://crontab.guru/)
jobs:
zotero-to-readwise-automation:
runs-on: ubuntu-latest
steps:
- name: 🍽️ Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: 🐍 Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: 💿 Install Zotero2Readwise Python package
run: pip install zotero2readwise
- name: 📥 Download the Python script needed for automation
run: curl https://raw.githubusercontent.com/e-alizadeh/Zotero2Readwise/master/zotero2readwise/run.py -o run.py
- name: 🚀 Run Automation
run: python run.py ${{ secrets.READWISE_TOKEN }} ${{ secrets.ZOTERO_KEY }} ${{ secrets.ZOTERO_ID }}