ci: 修复 workflow python 语法

This commit is contained in:
2025-12-03 12:42:20 +08:00
parent 13e0eed6ce
commit 4f65d33cf3

View File

@@ -68,12 +68,7 @@ jobs:
SERVICES_LIST="${services[*]}"
export SERVICES_LIST
SERVICES_JSON=$(python - <<'PY'
import json, os
raw = os.environ.get("SERVICES_LIST", "").split()
print(json.dumps(raw))
PY
)
SERVICES_JSON=$(python -c "import json, os; print(json.dumps(os.environ.get('SERVICES_LIST','').split()))")
echo "services=$SERVICES_JSON" >> "$GITHUB_OUTPUT"
TAG=$(date +%Y%m%d%H%M%S)