Skip to content

Commit

Permalink
Merge branch 'main' into CURA-12340_Seam-on-vertex-does-not-work-as-e…
Browse files Browse the repository at this point in the history
…xpected-with-user-defined
  • Loading branch information
wawanbreton authored Dec 17, 2024
2 parents 60b27d6 + e4532e9 commit 45532f2
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions .github/workflows/lint-formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,4 @@ on:

jobs:
lint-formatter-job:
name: Auto-apply clang-format

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: greguintow/get-diff-action@v7
with:
PATTERNS: |
include/**/*.h*
src/**/*.c*
- name: Setup Python and pip
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
uses: actions/setup-python@v5
with:
python-version: 3.11.x
cache: 'pip'
cache-dependency-path: .github/workflows/requirements-linter.txt

- name: Install Python requirements for runner
if: env.GIT_DIFF && !env.MATCHED_FILES
run: pip install -r .github/workflows/requirements-linter.txt

- name: Format file
if: env.GIT_DIFF && !env.MATCHED_FILES
run: |
clang-format -i ${{ env.GIT_DIFF_FILTERED }}
- uses: stefanzweifel/git-auto-commit-action@v4
if: env.GIT_DIFF && !env.MATCHED_FILES
with:
commit_message: "Applied clang-format."
uses: ultimaker/cura-workflows/.github/workflows/lint-formatter.yml@main

0 comments on commit 45532f2

Please sign in to comment.