File tree 1 file changed +21
-6
lines changed
1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,32 @@ jobs:
16
16
library-manager : submit
17
17
compliance : strict
18
18
19
- formatting-check :
20
- name : Formatting Check
19
+ format :
21
20
runs-on : ubuntu-latest
22
21
steps :
23
- - uses : actions/checkout@v4
24
- - name : Run clang-format style check for C/C++/Protobuf programs.
25
- uses : jidicula/clang-format-action@v4.13.0
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ ref : ${{ github.head_ref }}
25
+ fetch-depth : 2
26
+
27
+ - uses : jayllyz/clang-format-action@v1
28
+ # Default options
29
+ with :
30
+ check : false
31
+ style : file
32
+ extensions : cpp,h,hpp,c
33
+ clang-version : latest
34
+
35
+ # commit the changes (if there are any)
36
+ - name : Commit changes
37
+ uses : stefanzweifel/git-auto-commit-action@v5
38
+ with :
39
+ commit_message : " clang-format ✅"
40
+ branch : ${{ github.head_ref }}
26
41
27
42
test :
28
43
runs-on : ubuntu-latest
29
-
44
+ needs : lint, format
30
45
steps :
31
46
- uses : actions/setup-python@v4
32
47
with :
You can’t perform that action at this time.
0 commit comments