Code Monkey home page Code Monkey logo

healthy-punch-card's Introduction

中南大学nCov健康打卡脚本

注意:本代码使用Github-Actions定时运行,无需部署在服务器。

声明

项目用于学习交流,仅用于各项无异常时打卡,如有身体不适等情况还请自行如实打卡!

使用

  1. Fork本项目到你的仓库

  2. 设置Secrets

    从Github中进入刚刚fork到你的个人账号下的本项目,依次点击上栏 【Setting】->【Security】->【Secrets】->【Actions】

    点击【New repository secrets】 按钮新建:

    • USERNAME:中南大学学工号

    • PASSWORD:信息门户密码

  3. 启动定时打卡

    点击上栏【Actions】。选中 workflow ,点击【Run workflow】按钮。

  4. 查看运行情况

    打开Actions页面,此时在workflows中应该出现了正在运行的工作流。

    当手动运行时会马上进行一次打卡,以后将会默认在每天的00:25左右进行打卡(Github定时任务会有20分钟左右的延时)

异常处理

如果当天未打卡成功,会抛出异常,Github Action会向您发送一封邮件,所以您无需担心打卡是否成功。

修改打卡时间

打开项目中的/.github/workflows/healthy.yml文件,修改corn中的值,注意使用UTC时间。

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.