From 4798383c33e28179d1ad5c226d9801ceac05601c Mon Sep 17 00:00:00 2001 From: xFrednet Date: Sun, 21 Jul 2024 12:52:55 +0200 Subject: [PATCH] Lintcheck: Limit summary size to 1024k and copy to logs --- .github/workflows/lintcheck.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lintcheck.yml b/.github/workflows/lintcheck.yml index 46fd3089f44..bc7792deee4 100644 --- a/.github/workflows/lintcheck.yml +++ b/.github/workflows/lintcheck.yml @@ -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