Git Product home page Git Product logo

zju-ncov-hitcarder's Introduction

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

非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替换即可

zju-ncov-hitcarder's People

Contributors

github-actions[bot] avatar carrotspie avatar xue-ying-ze avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.