From da1b7fca7f62df71bc63d209ea8066f7edfba04a Mon Sep 17 00:00:00 2001 From: Jozef Marko Date: Fri, 15 Nov 2024 12:03:51 +0100 Subject: [PATCH] print rat-check output --- .github/workflows/pr-rat-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-rat-check.yml b/.github/workflows/pr-rat-check.yml index 46e09addb5..360fa16b8a 100644 --- a/.github/workflows/pr-rat-check.yml +++ b/.github/workflows/pr-rat-check.yml @@ -37,4 +37,6 @@ jobs: - name: Run Apache RAT run: | - java -jar apache-rat-0.17-20241115.065104-374.jar --input-exclude-file .rat-excludes -- . | grep "Files with unapproved licenses:" && echo "There are files with missing or unapproved license headers." && exit 1 || echo "All files have correct license headers." \ No newline at end of file + java -jar apache-rat-0.17-20241115.065104-374.jar --input-exclude-file .rat-excludes -- . > .tmp-rat-check-output + cat .tmp-rat-check-output + grep "Files with unapproved licenses:" .tmp-rat-check-output && rm .tmp-rat-check-output && echo "There are files with missing or unapproved license headers." && exit 1 || rm .tmp-rat-check-output && echo "All files have correct license headers." \ No newline at end of file