File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change 22
22
default : ' warning'
23
23
24
24
jobs :
25
- filter -format :
25
+ verify -format :
26
26
runs-on : ubuntu-latest
27
- outputs :
28
- any_changed : ${{ steps.changed-files.outputs.any_changed }}
29
27
steps :
28
+ - name : Checkout code
29
+ uses : actions/checkout@v4
30
+ with :
31
+ submodules : false
32
+ persist-credentials : false
33
+ clean : false # preserve the files created by the previous job
30
34
- name : Get changed source files that need format check
31
35
id : changed-files
32
36
uses : tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
@@ -42,24 +46,11 @@ jobs:
42
46
libraries/extras/**
43
47
libraries/ea_malloc/**
44
48
write_output_files : true
45
- - name : List of changed files
49
+ - name : List changed files
46
50
if : steps.changed-files.outputs.any_changed == 'true'
47
51
run : cat .github/outputs/all_changed_files.txt
48
-
49
- verify-format :
50
- runs-on : ubuntu-latest
51
- needs :
52
- - filter-format
53
- if : needs.filter-format.outputs.any_changed
54
- steps :
55
- - name : Checkout code
56
- uses : actions/checkout@v4
57
- with :
58
- submodules : false
59
- persist-credentials : false
60
- clean : false # preserve the files created by the previous job
61
-
62
52
- name : Run clang-format check
53
+ if : steps.changed-files.outputs.any_changed == 'true'
63
54
uses : pillo79/clang-format-action@main
64
55
with :
65
56
clang-format-version : ' 19'
You can’t perform that action at this time.
0 commit comments