fix: Repair deploy workflow YAML (indent heredoc)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user