Skip to content

Vjudge Score Spider #269

Vjudge Score Spider

Vjudge Score Spider #269

Workflow file for this run

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@v1
with:
chromedriver-version: '114.0.5735.90'
- 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