Skip to content

Commit 19d7c30

Browse files
committed
WIP git settings
1 parent 1d78407 commit 19d7c30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
run: |
3333
echo "$PWD/c3c/build" >> "$GITHUB_PATH"
3434
echo "PATH: $PATH"
35+
git config --global user.email "[email protected]"
36+
git config --global user.name "c3tools CI"
3537
3638
- name: Install common deps
3739
run: |
@@ -82,7 +84,7 @@ jobs:
8284
run: |
8385
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
8486
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
8688
git commit -m "CI commit after formatting"
8789
8890
- name: run c3tools unit tests after formatting
@@ -93,7 +95,7 @@ jobs:
9395
run: |
9496
find lib/ | grep ".c3$" | xargs -I{} ./build/c3fmt -w ${{ matrix.line_width }} -i ${{ matrix.indent }} {}
9597
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"
9799
98100
- name: run c3tools unit tests after (double) formatting
99101
run: |

0 commit comments

Comments
 (0)