Lintcheck: Limit summary size to 1024k and copy to logs

This commit is contained in:
xFrednet 2024-07-21 12:52:55 +02:00
parent 69c3289f2b
commit 4798383c33
No known key found for this signature in database
GPG Key ID: F5C59D0E669E5302
1 changed files with 7 additions and 1 deletions

View File

@ -115,4 +115,10 @@ jobs:
uses: actions/download-artifact@v4
- name: Diff results
run: ./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> $GITHUB_STEP_SUMMARY
# GH's summery has a maximum size of 1024k:
# https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
# That's why we first log to file and then to the summary and logs
run: |
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> ci_crates.diff
head -c 1024000 ci_crates.diff >> $GITHUB_STEP_SUMMARY
cat ci_crates.diff