Update main.yml

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