-
Notifications
You must be signed in to change notification settings - Fork 12
74 lines (65 loc) · 1.69 KB
/
douban.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# .github/workflows/douban.yml
name: Sync Douban Data
on:
schedule:
- cron: "0 */12 * * *"
# watch:
# types: [started]
workflow_dispatch:
repository_dispatch:
jobs:
douban:
name: Douban Data Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch Movie Data JSON
uses: lizheming/doumark-action@master
with:
id: eallion
type: movie
format: json
dir: ./data/douban
- name: Sync to NeoDB
uses: lizheming/doumark-action@master
with:
id: eallion
type: movie
format: neodb
neodb_token: ${{ secrets.NEODB_ACCESS_TOKEN }}
- name: Sync Movie to Notion
uses: lizheming/doumark-action@master
with:
id: eallion
type: movie
format: notion
dir: ${{ secrets.NOTION_MOVIE_ID }}
notion_token: ${{ secrets.NOTION_ACCESS_TOKEN }}
- name: Fetch Book Data JSON
uses: lizheming/doumark-action@master
with:
id: eallion
type: book
format: json
dir: ./data/douban
- name: Sync Book to NeoDB
uses: lizheming/doumark-action@master
with:
id: eallion
type: book
format: neodb
neodb_token: ${{ secrets.NEODB_ACCESS_TOKEN }}
- name: Sync Book to Notion
uses: lizheming/doumark-action@master
with:
id: eallion
type: movie
format: notion
dir: ${{ secrets.NOTION_BOOK_ID }}
notion_token: ${{ secrets.NOTION_ACCESS_TOKEN }}
- name: Git Commit
uses: EndBug/add-and-commit@v9
with:
message: 'chore(data): update douban data'
add: './data/douban'