-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.1 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
# .github/workflows/douban.yml
name: douban
on:
schedule:
- cron: "0 0 * * *"
watch:
types: [started]
jobs:
douban:
name: Douban mark data sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: backup data files
run: |
mv ./_data/book.json ./_data/douban/book_$(date +%Y-%m-%d).json.bak
mv ./_data/music.json ./_data/douban/music_$(date +%Y-%m-%d).json.bak
mv ./_data/movie.json ./_data/douban/movie_$(date +%Y-%m-%d).json.bak
- name: book
uses: lizheming/doumark-action@master
with:
id: conge
type: book
format: json
dir: ./_data
- name: movie
uses: lizheming/doumark-action@master
with:
id: conge
type: movie
format: json
dir: ./_data
- name: music
uses: lizheming/doumark-action@master
with:
id: conge
type: music
format: json
dir: ./_data
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: 'chore: update douban data'
add: './_data'