Skip to content

CarrotsPie/ZJU-nCov-Hitcarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

该项目仅供学习,产生任何问题,概不负责

非zjg的同学记得把hitcarder里的校区改成自己的校区

浙江大学健康打卡自动打卡脚本 GitHub Action 例子,只需一步 Fork 即可使用。

使用方法

  1. 直接 Fork 本仓库

  2. 配置帐号(必须)

    Settings > Actions > General > Workflow permissions,改为 Read and write permissions,这样 Monthly Update Action 才能拥有更新仓库的权限,Monthly Update Action 每月运行一次,会向仓库添加一个新的 commit,是用来防止因为仓库长时间不活跃,而被 GitHub 自动禁用 Actions。

    Settings > Secrets > Actions > New repository secret, 添加 ZJU_USERNAME,内容为浙大通行证账号(学号),添加ZJU_PASSWORD,内容为浙大通行证密码。

    zju_account

  3. 配置定时运行时间(可选)

    在 .github/workflows/health-report.yml 中更改时间:

    on:
    workflow_dispatch:
    schedule:
       - cron: '0 23 * * *'
  4. 配置钉钉消息通知(可选)

    • 手机版钉钉 > 右上角添加 > 面对面建群 > 创建之后得到只有你一个人的群聊
    • 电脑版钉钉 > 群设置 > 智能群助手 > 添加机器人 > 自定义,名字随便填,安全设置选择自定义关键字,填打卡,然后下一步复制Webhook。
    • Settings > Secrets > Actions > New repository secret, 添加DINGTALK_TOKEN,内容为刚才复制的Webhook中 access_token= 后面的内容。
  5. 测试

    Actions > I understand my workflows, go ahead and enable them

    Actions > @zju-health-report/action Demo > Enable workflow > Run workflow。

    Actions > Monthly Update Action > Enable workflow > Run workflow。

  6. 停用

    Actions > @zju-health-report/action Demo > Disable workflow。

    Actions > Monthly Update Action > Disable workflow。

2022/5/9:健康打卡页面修正了“今日是否有涉及涉疫情的管控措施是”的文本错误,将form.TXT替换即可 2022/5/19:健康打卡删去了验证码,更新form.TXT和hitcarder.PY 2022/7/02:健康打卡添加了是否实习,更新form.TXT和hitcarder.PY

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages