Skip to content

浙江大学健康打卡自动打卡脚本 GitHub Action 例子。

License

Notifications You must be signed in to change notification settings

Daakuang/zju-health-report-action-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zju-health-report-action-demo (ZHR demo)

github-actions-logo zju-health-report-logo

GitHub Action Demo for https://github.com/zju-health-report/action

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

使用方法

  1. 直接 Fork 本仓库

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

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

    on:
    workflow_dispatch:
    schedule:
       - cron: '0 23 * * *'
  3. 配置帐号(必须)

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

    zju_account

  4. 配置多人打卡(可选)

    在 .github/workflows/health-report.yml 中添加一组,自行添加对应的Secrets。

       - username: ZJU_USERNAME
         password: ZJU_PASSWORD
       - username: ZJU_USERNAME2
         password: ZJU_PASSWORD2
  5. 测试

    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。

About

浙江大学健康打卡自动打卡脚本 GitHub Action 例子。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published