File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed
Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 lint-formatter-job :
13- name : Auto-apply clang-format
14-
15- runs-on : ubuntu-latest
16- steps :
17- - name : Checkout
18- uses : actions/checkout@v4
19-
20- - uses : greguintow/get-diff-action@v7
21- with :
22- PATTERNS : |
23- include/**/*.h*
24- src/**/*.c*
25-
26- - name : Setup Python and pip
27- if : env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
28- uses : actions/setup-python@v5
29- with :
30- python-version : 3.11.x
31- cache : ' pip'
32- cache-dependency-path : .github/workflows/requirements-linter.txt
33-
34- - name : Install Python requirements for runner
35- if : env.GIT_DIFF && !env.MATCHED_FILES
36- run : pip install -r .github/workflows/requirements-linter.txt
37-
38- - name : Format file
39- if : env.GIT_DIFF && !env.MATCHED_FILES
40- run : |
41- clang-format -i ${{ env.GIT_DIFF_FILTERED }}
42-
43- - uses : stefanzweifel/git-auto-commit-action@v4
44- if : env.GIT_DIFF && !env.MATCHED_FILES
45- with :
46- commit_message : " Applied clang-format."
13+ uses : ultimaker/cura-workflows/.github/workflows/lint-formatter.yml@main
You can’t perform that action at this time.
0 commit comments