Update main.yml

This commit is contained in:
碎念_Nian
2024-02-02 23:23:44 +08:00
committed by GitHub
Unverified
parent 7bd0ccfdd4
commit 5a9816f738
+4 -1
View File
@@ -66,18 +66,21 @@ jobs:
TOKEN: ${{ secrets.TOKEN }} TOKEN: ${{ secrets.TOKEN }}
run: | run: |
python main.py python main.py
echo "------"
# 判断环境变量是否为空 # 判断环境变量是否为空
if [ -z "$URL" ]; then if [ -z "$URL" ]; then
echo "------"
echo "URL secret is empty!" echo "URL secret is empty!"
fi fi
if [ -z "$USERNAME" ]; then if [ -z "$USERNAME" ]; then
echo "------"
echo "USERNAME secret is empty!" echo "USERNAME secret is empty!"
fi fi
if [ -z "$PASSWORD" ]; then if [ -z "$PASSWORD" ]; then
echo "------"
echo "PASSWORD secret is empty!" echo "PASSWORD secret is empty!"
fi fi
if [ -z "$TOKEN" ]; then if [ -z "$TOKEN" ]; then
echo "------"
echo "TOKEN secret is empty!" echo "TOKEN secret is empty!"
fi fi
# 方便通过截图快速定位到用户 # 方便通过截图快速定位到用户