Code Monkey home page Code Monkey logo

my-bupt-ncov-report-action's Introduction

bupt-ncov-report-action

使用 GitHub Actions 自动填报北邮 COVID-19 疫情信息。

Telegram

这个 Action 会自动在北京时间的每天 8:00 AM 进行填报。

为了防止网络波动造成的失败,会间隔十分钟尝试六次。

使用方法

首先,点击上方绿色的 Use this template,使用这个模板创建你自己的 Repository;

然后,在你自己仓库的 Settings 的 Secrets 中设置以下信息:

  • BUPT_USERNAME: 你用来登录的学号;
  • BUPT_PASSWORD: 你用来登录的密码。

检查结果

无需任何设置。如果运行失败,GitHub 会向你的邮箱发送一封邮件。

如果你更改了设置,想手动重新运行,可以点进上方的 Actions 栏,点击 Re-run Jobs 来重新运行。

Telegram Bot

如果你知道怎么使用 Telegram Bot,则可以额外设置如下的 Secrets 来用 Bot 给你发送结果:

  • TG_BOT_TOKEN: 你的 Bot 的 Token;
  • TG_CHAT_ID: 你和 Bot 的 Chat ID。

高级设置

你可以在 .github/workflows/main.yml 中来设置每天运行的时间:

on:
  schedule:
    - cron: '0 0 * * *'

格式是标准的 cron 格式,第一个数字代表分钟,第二个数字代表小时。例如,0 1 * * * 表示在每天 格林尼治时间的 1:00 AM,也就是在北京时间的 9:00 AM 自动运行。

my-bupt-ncov-report-action's People

Contributors

kernellmd avatar

Stargazers

Roman avatar

Watchers

 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.