-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 1002 Bytes
/
ci.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
name: "Vjudge Score Spider"
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 10 * * *" # 延迟太久了
workflow_dispatch:
issues: # 评论触发
types: [opened]
permissions:
contents: write
jobs:
spider-score:
runs-on: ubuntu-latest
env:
LATEST: $(wget -q -O - https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
steps:
- name: check out repo
uses: actions/checkout@v3
- name: installing python prerequisite
run: |
sudo apt-get update
sudo apt-get install libxss1 -y
pip install -r requirement.txt
- name: installing chromedriver
uses: nanasess/setup-chromedriver@v2
- name: runing vjudge spider
run: |
chromedriver --version
python get_url.py
- name: commit results
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatically update scores