Skip to content

Commit c65e49d

Browse files
committed
fix: pass jobs_json via env var to fix stdin conflict in drift-to-issue
1 parent a80bb24 commit c65e49d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/drift-to-issue.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
# For each failed job, ensure a single open tracking issue
4444
# exists. Title format `[harness-drift] <job name>` makes
4545
# updates idempotent.
46-
echo "$jobs_json" | python3 - <<'PY'
47-
import json, os, subprocess, sys
46+
JOBS_JSON="$jobs_json" python3 - <<'PY'
47+
import json, os, subprocess
4848
49-
jobs = json.loads(sys.stdin.read())["jobs"]
49+
jobs = json.loads(os.environ["JOBS_JSON"])["jobs"]
5050
run_url = os.environ["RUN_URL"]
5151
5252
for job in jobs:

0 commit comments

Comments
 (0)