This commit is contained in:
NianBroken
2024-08-05 11:56:01 +08:00 Unverified
parent 9588442370
commit ceff25cd26
4 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -63,12 +63,13 @@ jobs:
GITHUB_RUN_NUMBER: ${{ github.run_number }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
# 运行主程序
# 判断 GITHUB_TOKEN 是否存在,如果不存在就退出
if [ -z "$GITHUB_TOKEN" ]; then
exit 0
fi
# 运行主程序
# 获取北京时间
export BEIJING_TIME="$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S:%3N')"
echo "BEIJING_TIME=$BEIJING_TIME" >> $GITHUB_OUTPUT
@@ -108,6 +109,7 @@ jobs:
echo "Author's Repository URL: https://github.com/NianBroken/ZFCheckScores/"
echo "------"
# 运行主程序
python scripts/delete_old_runs.py
- name: Delete __pycache__ folder
+2
View File
@@ -137,6 +137,7 @@ jobs:
echo "${first}${middle}${last}" # 组合首字符、中间部分的 '*' 和尾字符,并输出结果
fi
}
# 定义 anonymize_domain 函数,接收一个 URL 作为输入参数
anonymize_domain() {
local url=$1 # 获取输入参数并赋值给局部变量 url
@@ -180,6 +181,7 @@ jobs:
echo "Author's Repository URL: https://github.com/NianBroken/ZFCheckScores/"
echo "------"
# 运行主程序
python main.py
- name: Delete __pycache__ folder