File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ name: format
3
3
on : push
4
4
5
5
jobs :
6
-
7
6
java_format :
8
7
runs-on : ubuntu-latest
9
8
steps :
10
9
- uses : actions/checkout@v2 # v2 minimum required
11
10
- uses : axel-op/googlejavaformat-action@v3
12
11
with :
13
- args : " --skip-sorting-imports --replace"
12
+ args : ' --skip-sorting-imports --replace'
14
13
15
14
objc_format :
16
15
runs-on : macos-latest
22
21
find . -name '*.m' -exec clang-format -i {} \;
23
22
find . -path '*/ios/**/*.h' -exec clang-format -i {} \;
24
23
find . -path '*/macos/**/*.h' -exec clang-format -i {} \;
25
- git diff --exit-code
24
+ git diff --exit-code || (git commit --all -m "Clang Format" && git push)
26
25
27
26
swift_format :
28
27
runs-on : macos-latest
32
31
run : |
33
32
which swiftlint || brew install swiftlint
34
33
swiftlint --fix
35
- git diff --exit-code
34
+ git diff --exit-code || (git commit --all -m "Swift Format" && git push)
You can’t perform that action at this time.
0 commit comments