fix: Repair deploy workflow YAML (indent heredoc)

This commit is contained in:
2025-12-21 15:35:20 +01:00
parent 6a0e0c159c
commit 09fe679f9b

View File

@ -48,10 +48,10 @@ jobs:
CZDS_PASSWORD: ${{ secrets.CZDS_PASSWORD }}
run: |
python3 - <<'PY'
import os
from pathlib import Path
import os
from pathlib import Path
env = {
env = {
# Core
"ENVIRONMENT": "production",
"ENABLE_SCHEDULER": "true",
@ -102,15 +102,15 @@ env = {
# CZDS
"CZDS_USERNAME": os.environ["CZDS_USERNAME"],
"CZDS_PASSWORD": os.environ["CZDS_PASSWORD"],
}
}
lines = []
for k, v in env.items():
lines = []
for k, v in env.items():
if v is None:
continue
lines.append(f"{k}={v}")
lines.append(f\"{k}={v}\")
Path("backend.env").write_text("\n".join(lines) + "\n")
Path(\"backend.env\").write_text(\"\\n\".join(lines) + \"\\n\")
PY
- name: Upload backend env to server