Skip to content

Commit 23b231a

Browse files
committed
Lintcheck: Fix Errors, because of course
1 parent 10bf729 commit 23b231a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/lintcheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ jobs:
119119
# https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
120120
# That's why we first log to file and then to the summary and logs
121121
run: |
122-
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> full_diff.md
123122
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json --truncate >> truncated_diff.md
124123
head -c 1024000 truncated_diff.md >> $GITHUB_STEP_SUMMARY
125124
cat truncated_diff.md
125+
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json >> full_diff.md
126126
127127
- name: Upload full diff
128128
uses: actions/upload-artifact@v4

lintcheck/src/json.rs

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ pub(crate) fn diff(old_path: &Path, new_path: &Path, truncate: bool) {
8282
print_summary_table(&lint_warnings);
8383
println!();
8484

85+
if lint_warnings.is_empty() {
86+
return;
87+
}
88+
8589
let truncate_after = if truncate {
8690
// Max 15 ensures that we at least have five messages per lint
8791
DEFAULT_LIMIT_PER_LINT

0 commit comments

Comments
 (0)