Skip to content

Commit 267329c

Browse files
committed
ci: print the check and size summaries to the log as well
The job summary is not readable through the API, so a passing run left no record of what it checked anywhere but the web page. Refs #297
1 parent abb8cc3 commit 267329c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/pages.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
files=$(find site/dist -type f | wc -l)
6666
bytes=$(du -sb site/dist | cut -f1)
67-
echo "Published site: $files files, $((bytes / 1000000)) MB" >> "$GITHUB_STEP_SUMMARY"
67+
echo "Published site: $files files, $((bytes / 1000000)) MB" | tee -a "$GITHUB_STEP_SUMMARY"
6868
if [ "$files" -gt 700000 ] || [ "$bytes" -gt 900000000 ]; then
6969
echo "::error::site/dist is too large to publish safely ($files files, $bytes bytes)"
7070
exit 1

‎.github/workflows/pr-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ jobs:
151151
END { for (c in n) printf "| %s | %d | %d | %d |\n", c, s[c, "A"], s[c, "M"], s[c, "D"] }' | sort
152152
cat "$RUNNER_TEMP/failures.md" 2>/dev/null
153153
if [ -s "$RUNNER_TEMP/tier0.md" ]; then echo; echo "### Tier 0 (informational)"; echo; cat "$RUNNER_TEMP/tier0.md"; fi
154-
} >> "$GITHUB_STEP_SUMMARY"
154+
} | tee -a "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)