(md_path: Path, overwrite: bool = True)
| 833 | |
| 834 | |
| 835 | def create_job_summary(md_path: Path, overwrite: bool = True) -> None: |
| 836 | summary_path = os.environ.get("GITHUB_STEP_SUMMARY") |
| 837 | if not summary_path: |
| 838 | return |
| 839 | # Append markdown to the GitHub Actions Job Summary |
| 840 | mode = "w" if overwrite else "a" |
| 841 | with open(summary_path, mode, encoding="utf-8") as f: |
| 842 | f.write(md_path.read_text(encoding="utf-8")) |
| 843 | f.write("\n") |
| 844 | |
| 845 | |
| 846 | def write_github_output(res: SelectorResult) -> None: |