Skip to content

Commit

Permalink
Create run.yml in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyq18 authored May 15, 2024
1 parent 8774470 commit 42f2ed8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

0 comments on commit 42f2ed8

Please sign in to comment.