-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.24 KB
/
crawl_options.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
name: Crawl Data with Options
on:
workflow_dispatch:
inputs:
options:
description: The options to pass to the crawler.
required: false
default: "-y 111 -t 1 -c 16 -s"
jobs:
crawl:
name: Crawl Course Data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout Data Branch
uses: actions/checkout@v3
with:
ref: data
path: data
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest
run-install: false
- name: Install dependencies
run: pnpm i
- name: Crawl data
run: node dist ${{ github.event.inputs.options }}
- name: Push to data branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "./data"
user_name: "JacobLinCool"
user_email: "jacoblincool@users.noreply.github.com"
publish_branch: "data"
keep_files: true