优化环境变量检查逻辑,移除不必要的密钥
This commit is contained in:
@@ -128,8 +128,6 @@ jobs:
|
||||
required_env_keys=(
|
||||
ENVIRONMENT
|
||||
NETWORK_NAME
|
||||
SECRET_KEY
|
||||
ENCRYPTION_KEY
|
||||
DB_NAME
|
||||
DB_HOST
|
||||
DB_PORT
|
||||
@@ -150,7 +148,7 @@ jobs:
|
||||
|
||||
missing_keys=()
|
||||
for key in "${required_env_keys[@]}"; do
|
||||
if ! grep -Eq "^[[:space:]]*${key}=" .env; then
|
||||
if ! grep -Eq "^[[:space:]]*(export[[:space:]]+)?${key}[[:space:]]*=" .env; then
|
||||
missing_keys+=("$key")
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user