Skip to content

Commit

Permalink
fix: cron中变量的默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Aug 16, 2024
1 parent b2227b6 commit 6bc8bce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/cron_bypassCF.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ jobs:
echo ".env file not found. Skipping loading."
fi
# Debug: 确认环境变量已加载
echo "Debug: USERNAMES = $USERNAMES"
echo "Debug: PASSWORDS = $PASSWORDS"
echo "Debug: WEBSITE = $WEBSITE"
# 如果 GitHub Secrets 中设置了环境变量,则覆盖默认值
if [ -n "${{ secrets.USERNAMES }}" ] && [ ! -z "${{ secrets.USERNAMES }}" ]; then
echo "Using GitHub Secret for USERNAMES"
Expand All @@ -74,9 +69,6 @@ jobs:
echo "WEBSITE=${WEBSITE}" >> $GITHUB_ENV
fi
# Debug: 输出最终的环境变量值
echo "Final values in GITHUB_ENV:"
cat $GITHUB_ENV
shell: bash

- name: Run a script
Expand Down

0 comments on commit 6bc8bce

Please sign in to comment.