-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修改大量代码逻辑,以实现程序的稳定性。 同时,对测试中出现的大部分情况进行了处理,以实现程序的鲁棒性 最后,程序基本开发完成,这是最后一个版本,如果没有新功能的话就不更新了
- Loading branch information
Showing
7 changed files
with
259 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
name: AutoOnGithubAction | ||
name: 自动执行GitHub操作 | ||
|
||
on: [workflow_dispatch] | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '15 11 * * *' # 北京时间每天的19:15 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Python 3.12 | ||
- name: 安装最新版本的 Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
python-version: 'latest' | ||
architecture: 'x64' | ||
|
||
- name: Check Python version | ||
- name: 检查 Python 版本 | ||
run: python --version | ||
|
||
# Add more steps as needed for your workflow | ||
- name: 检出仓库代码到工作区 | ||
uses: actions/checkout@v2 | ||
|
||
- name: 创建配置 YAML 文件 | ||
uses: microsoft/variable-substitution@v1 | ||
with: | ||
files: 'config.yml' | ||
env: | ||
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} | ||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | ||
USERNAME: ${{ secrets.USERNAME }} | ||
PASSWORD: ${{ secrets.PASSWORD }}de | ||
|
||
- name: 显示配置 YAML | ||
run: cat config.yaml | ||
|
||
- name: 安装所需依赖 | ||
run: | | ||
pip install -r requirements.txt | ||
- name: 运行 Python 脚本 | ||
run: | | ||
python get_seat.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Telegram 相关 | ||
CHANNEL_ID: "" | ||
TELEGRAM_BOT_TOKEN: "" | ||
TELEGRAM_URL: "" | ||
|
||
# 账号授权相关 | ||
USERNAME: "" | ||
PASSWORD: "" | ||
|
||
# 其他设置 | ||
MODE: "1" | ||
SEAT_ID: "7440" | ||
DATE: "tomorrow" | ||
CLASSROOMS_NAME: | ||
- 西校区图书馆-五层自习室 | ||
- 西校区图书馆-四层自习室 | ||
- 西校区图书馆-三层自习室 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.