Skip to content

Commit e017f96

Browse files
committed
Lintcheck: Limit Summery size to 1024k and copy to logs
1 parent 69c3289 commit e017f96

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/lintcheck.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,10 @@ jobs:
115115
uses: actions/download-artifact@v4
116116

117117
- name: Diff results
118-
run: ./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> $GITHUB_STEP_SUMMARY
118+
# GH's summery has a maximum size of 1024k:
119+
# https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
120+
# That's why we first log to file and then to the summary and logs
121+
run: |
122+
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> ci_crates.diff
123+
head -c 1024000 ci_crates.diff >> $GITHUB_STEP_SUMMARY
124+
cat ci_crates.diff

0 commit comments

Comments
 (0)