File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 32
32
run : |
33
33
echo "$PWD/c3c/build" >> "$GITHUB_PATH"
34
34
echo "PATH: $PATH"
35
+ git config --global user.email "[email protected] "
36
+ git config --global user.name "c3tools CI"
35
37
36
38
- name : Install common deps
37
39
run : |
82
84
run : |
83
85
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
84
86
echo "Checking if any changes after formatting"
85
- git add . && git diff --quiet && git diff --cached | head
87
+ git add lib/ && git diff --quiet && git diff --cached | head
86
88
git commit -m "CI commit after formatting"
87
89
88
90
- name : run c3tools unit tests after formatting
93
95
run : |
94
96
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
95
97
echo "Checking if any changes after formatting (must be the same!)"
96
- git add . && git diff --quiet && git diff --cached | head
98
+ ( git add lib/ && git diff --quiet && git diff --cached && echo "Double formatting changes") || echo "Good no double format changes"
97
99
98
100
- name : run c3tools unit tests after (double) formatting
99
101
run : |
You can’t perform that action at this time.
0 commit comments