File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : clang-format
2
2
3
3
on :
4
+ pull_request :
5
+ types : [opened, synchronize, reopened, ready_for_review]
4
6
workflow_dispatch :
5
7
inputs :
6
8
commit_changes :
12
14
required : false
13
15
14
16
jobs :
15
- build :
17
+ clang-format-lint :
16
18
runs-on : ubuntu-latest
17
19
18
20
steps :
19
21
- uses : actions/checkout@v4
20
22
21
23
- name : Run clang-format lint
22
- uses : DoozyX/clang-format-lint-action@v0.18
24
+ uses : DoozyX/clang-format-lint-action@v0.20
23
25
with :
24
- source : ' ./core ./extensions ./tests ./templates'
26
+ source : ' ./axmol ./extensions ./tests ./templates'
25
27
exclude : ' ./thidrparty ./extensions/fairygui ./extensions/Live2D ./extensions/Effekseer ./extensions/scripting/lua-bindings/auto ./extensions/spine ./tests/fairygui-tests ./extensions/**/*_generated.h'
26
28
extensions : ' h,cpp,c,mm'
27
29
clangFormatVersion : 19
28
30
inplace : True
29
31
- name : Commit clang-format changes
30
- if : ${{ github.event.inputs.commit_changes == 'true' }}
32
+ if : ${{ github.event.inputs.commit_changes == 'true' || github.event_name == 'pull_request' }}
31
33
uses : EndBug/add-and-commit@v9
32
34
with :
35
+ default_author : github_actions
33
36
committer_name : GitHub Actions
34
37
committer_email : 41898282+github-actions[bot]@users.noreply.github.com
35
38
message : ' Committing clang-format changes'
39
+ new_branch : ${{ github.head_ref }}
36
40
env :
37
41
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments