diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 5355bb6..652ae96 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -38,7 +38,8 @@ jobs: done < files_to_check.txt if [ -f clang-format-diff.txt ]; then - echo "\nThe following files have style issues:" && cat clang-format-diff.txt + echo "\nThe following files have style issues:" >> $GITHUB_OUTPUT && cat clang-format-diff.txt >> $GITHUB_OUTPUT + echo "\nRun clang-format -i src/*.[ch] in order to fix" >> $GITHUB_OUTPUT exit 1 fi shell: bash @@ -48,4 +49,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: clang-format-diff - path: clang-format-diff.txt + path: countdown/clang-format-diff.txt