From: Fred Morcos Date: Tue, 9 May 2023 10:02:51 +0000 (+0200) Subject: Handle the case where none of the products produce any warnings X-Git-Tag: rec-4.9.0-beta1~29^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=666391b19885096feca543ccd3bcc9b3b81b9ebd;p=thirdparty%2Fpdns.git Handle the case where none of the products produce any warnings Co-authored-by: Remi Gacogne --- diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index 880566ec85..668c9bf77c 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -538,7 +538,13 @@ jobs: name: Check whether clang-tidy succeeded steps: - run: | - if [ "${{needs.build-auth.outputs.clang-tidy-failed}}" != "0" -o "${{needs.build-dnsdist.outputs.clang-tidy-failed}}" != "0" -o "${{needs.build-recursor.outputs.clang-tidy-failed}}" != "0" ]; then + if [ "x${{ needs.build-auth.outputs.clang-tidy-failed }}" != "x" -a "${{ needs.build-auth.outputs.clang-tidy-failed }}" != "0" ]; then + exit 1 + fi + if [ "x${{ needs.build-dnsdist.outputs.clang-tidy-failed }}" != "x" -a "${{ needs.build-dnsdist.outputs.clang-tidy-failed }}" != "0" ]; then + exit 1 + fi + if [ "x${{needs.build-recursor.outputs.clang-tidy-failed}}" != "" -a "${{needs.build-recursor.outputs.clang-tidy-failed}}" != "0" ]; then exit 1 fi