-
Notifications
You must be signed in to change notification settings - Fork 389
28 lines (22 loc) · 1.07 KB
/
Copy pathmain.yml
File metadata and controls
28 lines (22 loc) · 1.07 KB
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
name: 刷课
on:
push:
branches: [ main ]
#是否开始每天8点定时刷课,若要开启请把下面两行注释去掉
#schedule:
# - cron: "0 8 * * *"
jobs:
Start:
runs-on: ubuntu-latest # 在最新版本的 Ubuntu 操作系统环境下运行
steps: # 要执行的步骤
- name: 拷贝代码
uses: actions/checkout@v3 # 用于将github代码仓库的代码拷贝到工作目录中
- name: 设置python环境
uses: actions/setup-python@v2 # 用于设置 Python 环境,它允许你指定要在工作环境中使用的 Python 版本
with:
python-version: '3.9' # 选择要用的Python版本
- name: 安装依赖包
run: | # 安装依赖包
pip install -r ./requirements.txt
- name: Run main.py
run: python main.py -u 19307920185 -p zhouchen20071014-l 244403509 #https://mooc2-ans.chaoxing.com/mooc2-ans/mycourse/stu?courseid=254743161&clazzid=127317167&cpi=489800354&enc=e8bd13fce670422186a8bcbb5c28df00&t=1762177110318&pageHeader=21&v=0&hideHead=0