-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 894 Bytes
/
run.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
name: Run Damai Crawler
on:
schedule:
- cron: "0 18 * * *"
jobs:
run_crawler:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # 用于将github代码仓库的代码拷贝到工作目录中
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install requirements.txt
run: |
pip install -r ./requirements.txt
- name: Run main.py
run: python main.py
- name: Run format.py
run: python format.py
- name: Run build_index.py
run: python build_index.py
- name: 'Show Diff'
run: git add .
- name: 'Commit and Push'
uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856
with:
commit-message: "update data"
remote: origin