-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Expand file tree
/
Copy pathaction.yml
More file actions
46 lines (44 loc) · 1.36 KB
/
action.yml
File metadata and controls
46 lines (44 loc) · 1.36 KB
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
43
44
45
46
name: weread2notion sync
description: Sync WeRead highlights and notes to Notion.
author: malinkang
inputs:
weread-api-key:
description: WeRead Gateway API key.
required: true
notion-token:
description: Notion integration token.
required: true
notion-page:
description: Notion database page URL or database ID.
required: false
notion-database-id:
description: Notion database ID. Used when notion-page is not set.
required: false
notion-data-source-id:
description: Notion data source ID. Preferred for Notion-Version 2026-03-11.
required: false
python-version:
description: Python version used to run the sync.
required: false
default: "3.11"
runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install weread2notion
shell: bash
run: |
python -m pip install --upgrade pip
pip install "$GITHUB_ACTION_PATH"
- name: Sync WeRead to Notion
shell: bash
env:
WEREAD_API_KEY: ${{ inputs.weread-api-key }}
NOTION_TOKEN: ${{ inputs.notion-token }}
NOTION_PAGE: ${{ inputs.notion-page }}
NOTION_DATABASE_ID: ${{ inputs.notion-database-id }}
NOTION_DATA_SOURCE_ID: ${{ inputs.notion-data-source-id }}
run: weread2notion sync