Added the ability to calculate GPA, and optimized the relevant code to determine whether to run for the first time.
This commit is contained in:
@@ -48,8 +48,11 @@ jobs:
|
||||
|
||||
- name: Restore local .txt files and delete backup # 从备份目录将.txt文件还原到当前目录,然后删除备份目录
|
||||
run: |
|
||||
if [ -e backup/*.txt ]; then
|
||||
cp backup/*.txt .
|
||||
fi
|
||||
rm -rf backup
|
||||
shell: /usr/bin/bash -e {0}
|
||||
|
||||
- name: Run main.py # 运行主程序main.py
|
||||
run: python main.py
|
||||
|
||||
Reference in New Issue
Block a user