diff --git a/.github/workflows/linter-irods-clang-format.yml b/.github/workflows/linter-irods-clang-format.yml index 8e8e163..2531032 100644 --- a/.github/workflows/linter-irods-clang-format.yml +++ b/.github/workflows/linter-irods-clang-format.yml @@ -16,3 +16,13 @@ jobs: - name: Run ClangFormat run: | echo "warnings=$(clang-format -n src/* | wc -l)" >> "$GITHUB_ENV" + + - run: | + echo "Source code is properly formatted. ${{ env.warnings }}"; + exit 1 + if: ${{ env.warnings }} == '0' + + - run: | + echo "Source code needs to be formatted! ${{ env.warnings }}"; + exit 1 + if: ${{ env.warnings }} != '0'