GithubHelp home page GithubHelp logo

buptft_auto_apply_action's Introduction

bupt-auto-apply-action

使用 GitHub Actions 自动完成每日的出校申请。

这个 Action 会自动在北京时间的每天 11:00 PM 进行自动申请。

使用方法

使用方法与项目 imtsuki/bupt-ncov-report-action 的使用方法基本一致。

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

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

  • FORM_NAME: 名字,如:张三
  • FORM_STDID: 学号码,如:2020202020
  • FORM_DEP: 学院名称,如:计算机学院(国家示范性软件学院)
  • FORM_PHONE: 手机号,如:18898765432
  • FORM_WHERE: 填报的「外出去向」
  • FORM_WHY: 填报的「外出事由」
  • FORM_CAMPUS: 校区,西土城校区 或 沙河校区
  • FORM_TEACHER_NAME: 辅导员姓名
  • FORM_TEACHER_UID: 辅导员uid
  • FORM_TEACHER_NUMBER: 辅导员工号
  • COOKIE: cookie

以上信息均可以在访问网址:https://service.bupt.edu.cn/v2/matter/launch 之后在后台获得。

检查结果

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

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

Telegram Bot

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

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

Telegram

高级设置

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

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

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

buptft_auto_apply_action's People

Contributors

moozonwei avatar

Stargazers

 avatar

Watchers

 avatar  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.