Skip to content

Commit c7ebf91

Browse files
committed
fix(ci): simplify log reference in job summary
The job ID isn't available as an env var, so just tell users to expand the failed step above (which is on the same page).
1 parent 2f98b05 commit c7ebf91

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

scripts/fast_checks.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,9 @@ def write_github_summary(check: Check, check_key: str) -> None:
4141
if not summary_file:
4242
return
4343

44-
# Build link to job logs
45-
server = os.environ.get("GITHUB_SERVER_URL", "https://github.com")
46-
repo = os.environ.get("GITHUB_REPOSITORY", "")
47-
run_id = os.environ.get("GITHUB_RUN_ID", "")
48-
log_link = f"{server}/{repo}/actions/runs/{run_id}" if repo else ""
49-
5044
with open(summary_file, "a") as f:
5145
f.write(f"## ❌ {check.name} failed\n\n")
52-
if log_link:
53-
f.write(f"[See full log output]({log_link})\n\n")
54-
else:
55-
f.write("See log output above.\n\n")
46+
f.write("Expand the failed step above to see full output.\n\n")
5647
f.write("### How to fix\n\n")
5748
f.write(check.fix_hint)
5849
f.write("\n\n")

0 commit comments

Comments
 (0)