-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (50 loc) · 1.37 KB
/
crawling.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
name: Crawling
on:
push:
branches:
- main
schedule:
- cron: "*/30 * * * *"
jobs:
crawling:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Checkout data
uses: actions/checkout@v2
with:
persist-credentials: false
ref: gh-pages
path: ./data
- name: Install
run: yarn install --frozen-lockfile
- name: Pip
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- name: Pip Install
run: pip install -r requirements.txt
- name: Crawling
run: yarn start
env:
LOG_FORMAT: json
NUM_TERMS: 2
ALWAYS_SCRAPE_CURRENT_TERM: 1
DETAILS_CONCURRENCY: 256
DATA_FOLDER: ./data
- name: Revision
run: python ./src/Revise.py
- name: Upload
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
token: ${{ secrets.CRAWLER_DEPLOY_PERSONAL_ACCESS_TOKEN }}
branch: gh-pages
folder: ./data
clean: true
single-commit: true
git-config-name: gt-scheduler-bot
git-config-email: [email protected]