Vjudge Score Spider #458
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |