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 }} 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
# 方便通过截图快速定位到用户 # 方便通过截图快速定位到用户
echo "------"
echo "Repository Name: ${{ github.repository }}" echo "Repository Name: ${{ github.repository }}"
echo "Commit SHA: ${{ github.sha }}" echo "Commit SHA: ${{ github.sha }}"
echo "Current Workflow: ${{ github.workflow }}" echo "Current Workflow: ${{ github.workflow }}"