Skip to content

erika-liu/actions-NjuHealthReport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

自动健康填报助手

简介

每天 7:00, 19:00 GMT+8 自动完成健康填报,如想修改定时运行的时间,可修改 .github/workflows/healthReport.ymlschedule 属性。

如果当日有异常,请手动在 APP 端填写!!!!!!!!!!!!

Github Actions 启用步骤

1. Fork 本项目

Fork 本项目: zhangt2333/actions-NjuHealthReport (Star 自然是更好)

2. 准备需要的参数

{
    # fill them:
    'username': 'fill-it',  # 学号
    'password': 'fill-it',  # 密码
    'location': 'fill-it',  # 地址, 如 中国xx省xx市xx区xxxx
    'deadline': '2021-10-05', # 填报截止日期,超过该天则停止填报并报错到 actions,开区间

    'none': 'none'
}

3. 启用 Github Actions

image-20210216140844300

4. 将参数填到 Secrets

将填好的参数加入到 Secrets 中,name 为 DATA,value 为步骤 2 中的多行字符串

image-20210216140557947

5. 配置自己账号的邮件提醒

如下图正确配置,这样运行失败的 Github Actions 事件会自动邮件通知你

为多人打卡

  1. 依照 Github Actions 启用步骤 第 2、4 步,添加新的 Secret,假设命名为 DATA2

  2. 复制一遍 .github/workflows/healthReport.yml 中最后一行 python health_report_helper/main.py "${{ secrets.DATA }}" 并将其中的 secrets.DATA 中的 DATA 改为新 secrets 的键值。

  3. 修改后的文件应如下所示(假设新键为DATA2

  // .....
  - name: Run Spider
        run: |
          python health_report_helper/main.py "${{ secrets.DATA }}"
          python health_report_helper/main.py "${{ secrets.DATA2 }}"

License

MIT:被授权人有权利在软件和软件的所有副本中包含版权声明和许可声明的前提下,使用、复制、修改、合并、出版发行、散布、再授权及贩售软件及软件的副本。授权人不为被授权人行为承担任何责任,且无义务对著作进行更新。

About

自动完成每日健康填报(Github Actions)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%