diff --git a/.github/workflows/static.check.yml b/.github/workflows/static.check.yml index c6702d92c3..9fb2998259 100644 --- a/.github/workflows/static.check.yml +++ b/.github/workflows/static.check.yml @@ -13,19 +13,19 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 5 - - name: Get changed files + - name: [Preparing] data for static checkers. id: changed-files uses: tj-actions/changed-files@v41 with: since_last_remote_commit: true - - name: List all files changed + - name: [Preparing] list changed files. env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | for file in "$ALL_CHANGED_FILES"; do echo "$file was changed" done - - name: Run clang-format for cc/hh/hpp/cpp files + - name: [Checker] clang-format for .cc/.hh/.hpp/.cpp files env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} shell: bash @@ -47,7 +47,7 @@ jobs: git diff -- *.cc *.hh *.hpp *.cpp > .ci.clang-format.patch SIZE=$(stat -c%s .ci.clang-format.patch) if [[ $SIZE -ne 0 ]]; then - echo "clang-format shows that the commit has style errors." + echo "::error clang-format has found style errors in C++ files." cat .ci.clang-format.patch exit 1 fi