diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 4939135ffe1b5..fb8ad384f3885 100644 --- a/.github/workflows/cppcheck-differential.yaml +++ b/.github/workflows/cppcheck-differential.yaml @@ -45,11 +45,15 @@ jobs: echo "Running Cppcheck on changed files: $files" cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 $files 2> cppcheck-report.txt # cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt - cat cppcheck-report.txt else echo "No C++ files changed." + touch cppcheck-report.txt fi shell: bash + + - name: Show cppcheck-report result + run: | + cat cppcheck-report.txt - name: Upload Cppcheck report uses: actions/upload-artifact@v2