File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1- name : clang-format Check
1+ name : clang-format Commit Chanages
22on :
33 workflow_dispatch :
44 push :
5- paths-ignore :
6- - ' **.md'
7- - ' **.txt'
8- - ' docs/**'
95jobs :
106 formatting-check :
11- name : Formatting Check
7+ name : Commit Format Changes
128 runs-on : ubuntu-latest
139 if : " !contains(github.event.head_commit.message, 'skip-ci')"
10+ permissions :
11+ contents : write # In order to allow EndBug/add-and-commit to commit changes
1412 steps :
15- - uses : actions/checkout@v2
16- - name : Run clang-format style check for C programs.
17- uses : DoozyX/clang-format-lint-action@v0.11
13+ - uses : actions/checkout@v3
14+ - name : Fix C formatting issues detected by clang-format
15+ uses : DoozyX/clang-format-lint-action@v0.13
1816 with :
1917 source : ' .'
2018 extensions : ' c,h,cpp,hpp'
2119 clangFormatVersion : 10
2220 inplace : True
2321 style : file
2422 # exclude: './config '
25- - uses : EndBug/add-and-commit@v7
23+ - uses : EndBug/add-and-commit@v9
2624 with :
2725 author_name : github-actions
2826 author_email : github-actions[bot]@users.noreply.github.com
29- message : ' Committing clang-format changes'
27+ message : ' Committing clang-format changes'
You can’t perform that action at this time.
0 commit comments