Skip to content

Run Damai Crawler

Run Damai Crawler #289

Workflow file for this run

name: Run Damai Crawler
on:
schedule:
- cron: "0 18 * * *"
jobs:
run_crawler:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # 用于将github代码仓库的代码拷贝到工作目录中
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install requirements.txt
run: |
pip install -r ./requirements.txt
- name: Run main.py
run: python main.py
- name: Run format.py
run: python format.py
- name: Run build_index.py
run: python build_index.py
- name: 'Show Diff'
run: git add .
- name: 'Commit and Push'
uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856
with:
commit-message: "update data"
remote: origin