Last active
September 17, 2023 10:12
-
-
Save Mantyke/ce98eaba50c620c9e1b83e240879639d to your computer and use it in GitHub Desktop.
豆瓣同步到CSV Github Action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//by 怡红公子,修改自用 | |
# .github/workflows/douban.yml | |
name: douban | |
on: | |
push: | |
branches: | |
- master //当master分支更新时执行 | |
watch: | |
types: [started] | |
jobs: | |
douban: | |
name: Douban mark data sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: movie | |
uses: lizheming/doumark-action@master | |
with: | |
id: 这里的id指的是豆瓣id而不是用户名 | |
type: movie | |
format: csv | |
dir: ./data/douban //数据保存在data/douban文件夹 | |
- name: book | |
uses: lizheming/doumark-action@master | |
with: | |
id: 这里的id指的是豆瓣id而不是用户名 | |
type: book | |
format: csv | |
dir: ./data/douban | |
- name: Commit | |
uses: EndBug/add-and-commit@v8 | |
with: | |
message: 'chore: update douban data' | |
add: './data/douban' //提交到data/douban文件夹 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment