Skip to content

Commit 45532f2

Browse files
authored
Merge branch 'main' into CURA-12340_Seam-on-vertex-does-not-work-as-expected-with-user-defined
2 parents 60b27d6 + e4532e9 commit 45532f2

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

.github/workflows/lint-formatter.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,4 @@ on:
1010

1111
jobs:
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

0 commit comments

Comments
 (0)