We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e2c74 commit 33699c7Copy full SHA for 33699c7
.github/workflows/make.yml
@@ -16,12 +16,21 @@ jobs:
16
if: '!cancelled()'
17
run: |
18
clang-format -i */*.[ch]
19
- if git diff | grep ""; then
20
- (echo "Formatting errors detected by clang-format." \
21
- "Please run \`make format\`.";
+ git diff > formatting-fixes.diff
+ if ! grep "" formatting-fixes.diff; then
+ rm -f formatting-fixes.diff
22
+ else
23
+ (echo "Formatting errors detected by clang-format. Please run" \
24
+ "\`make format\` or apply formatting-fixes.diff below.";
25
echo) >> $GITHUB_STEP_SUMMARY
26
false
27
fi
28
+ - uses: actions/upload-artifact@v4
29
+ if: '!cancelled()'
30
+ with:
31
+ if-no-files-found: ignore
32
+ name: formatting-fixes.diff
33
+ path: formatting-fixes.diff
34
- name: Check C89 compliance
35
36
env:
0 commit comments