We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b4ed8d commit 714886fCopy full SHA for 714886f
1 file changed
.github/workflows/ci_child.yml
@@ -85,6 +85,7 @@ jobs:
85
import os
86
import shlex
87
import sys
88
+ import uuid
89
from pathlib import Path
90
91
from run import (
@@ -187,8 +188,15 @@ jobs:
187
188
env_opt("IMAGE_TAG") or job.get("image", "latest"),
189
)
190
191
+ docker_args_text = shlex.join(docker_args)
192
+ delimiter = f"EOF_{uuid.uuid4().hex}"
193
+
194
with open(github_env, "a", encoding="utf-8") as f:
- f.write(f"DOCKER_ARGS={shlex.join(docker_args)}\n")
195
+ # DOCKER_ARGS contains an embedded multiline bash script argument;
196
+ # write it using the multiline GITHUB_ENV syntax.
197
+ f.write(f"DOCKER_ARGS<<{delimiter}\n")
198
+ f.write(docker_args_text + "\n")
199
+ f.write(f"{delimiter}\n")
200
f.write(f"RESULT_DIR={results_dir}\n")
201
f.write(f"IMAGE_TAG={image_ref}\n")
202
PY
0 commit comments