Files
open-design/.github/scripts/lib/github.py
T
84381efab9 feat(ci): add global hash skip planning (#7185)
* feat(ci): add global hash skip planning

* refactor(ci): remove superseded hash skip cache

* refactor(ci): keep scope trust in planner

* fix(ci): run scope goldens for planner changes

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix(ci): publish hash state after successful validation

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

---------

Co-authored-by: Looper <looper@noreply.github.com>
2026-08-21 00:12:33 +08:00

20 lines
616 B
Python

import os
from pathlib import Path
def append_outputs(values: dict[str, str]):
output_path = os.environ.get("GITHUB_OUTPUT")
lines = [f"{key}={value}" for key, value in values.items()]
if output_path:
with Path(output_path).open("a", encoding="utf-8") as output:
output.write("\n".join(lines) + "\n")
else:
print("\n".join(lines))
def append_summary(markdown: str):
summary_path = os.environ.get("GITHUB_STEP_SUMMARY")
if summary_path:
with Path(summary_path).open("a", encoding="utf-8") as summary:
summary.write(markdown.rstrip() + "\n")