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文件还原到当前目录,然后删除备份目录
|
- name: Restore local .txt files and delete backup # 从备份目录将.txt文件还原到当前目录,然后删除备份目录
|
||||||
run: |
|
run: |
|
||||||
|
if [ -e backup/*.txt ]; then
|
||||||
cp backup/*.txt .
|
cp backup/*.txt .
|
||||||
|
fi
|
||||||
rm -rf backup
|
rm -rf backup
|
||||||
|
shell: /usr/bin/bash -e {0}
|
||||||
|
|
||||||
- name: Run main.py # 运行主程序main.py
|
- name: Run main.py # 运行主程序main.py
|
||||||
run: python main.py
|
run: python main.py
|
||||||
|
|||||||
Reference in New Issue
Block a user