Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,14 @@ jobs:

if [ "$rc" -eq 1 ]; then
cat $annotations
cat $markdown >> $GITHUB_STEP_SUMMARY
# Truncate to stay under GitHub's 1024k step summary limit. Leave 200 bytes for warning message.
max_size=$((1024 * 1024 - 200))
if [ "$(wc -c < "$markdown")" -gt "$max_size" ]; then
head -c "$max_size" "$markdown" >> $GITHUB_STEP_SUMMARY
echo -e "\n\n> **Warning:** Summary was truncated because it exceeded the 1024k size limit." >> $GITHUB_STEP_SUMMARY
else
cat $markdown >> $GITHUB_STEP_SUMMARY
fi
echo

if [ "$GHA_API_FAIL_THRESHOLD" != "never" ]; then
Expand Down
Loading