From 01a335ead004c3287cc5963f9a5a6c6bacf0638d Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Mon, 11 Mar 2024 11:51:14 +0100 Subject: [PATCH] YDA-5623: fail workflow if code is not properly formatted --- .github/workflows/linter-irods-clang-format.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/linter-irods-clang-format.yml b/.github/workflows/linter-irods-clang-format.yml index 8e8e163..0b36e8e 100644 --- a/.github/workflows/linter-irods-clang-format.yml +++ b/.github/workflows/linter-irods-clang-format.yml @@ -16,3 +16,7 @@ jobs: - name: Run ClangFormat run: | echo "warnings=$(clang-format -n src/* | wc -l)" >> "$GITHUB_ENV" + + - name: Use the value + run: | + printf '%s\n' "$warnings"