mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
* 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>
20 lines
616 B
Python
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")
|