Skip to content

Commit

Permalink
feat: print clang format errors both to console and file
Browse files Browse the repository at this point in the history
Otherwise to see the actual errors one must download
the artifact generated by the action. If there are only a
few errors is easier and faster to just read the output
from the github action onsite.
  • Loading branch information
jr0me committed Jul 16, 2024
1 parent 9c7e6ac commit 0d20be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/clang_format/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
arguments+="-i $sourceFiles "
ERRORS_FILE=${{ inputs.path }}/clang_format_errors.txt
clang-format $arguments 2> ${ERRORS_FILE}
clang-format $arguments 2>&1 | tee ${ERRORS_FILE}
# Check if there are errors
if [ -s "${ERRORS_FILE}" ]; then
Expand Down

0 comments on commit 0d20be3

Please sign in to comment.