-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (33 loc) · 935 Bytes
/
Copy pathspider.yml
File metadata and controls
41 lines (33 loc) · 935 Bytes
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
name: Crawl Data
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
push: { branches: ["master", "main"] }
jobs:
crawl:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install requests
- name: Crawl data and update JSON
run: |
python CrawlData/crawl_data.py
env:
DATA_JSON_PATH: CrawlData/data.json
- name: commit
run: |
git config --global user.email 3504852205@qq.com
git config --global user.name pwxiao
git add .
git commit -m "update" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}