mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Only run formatting on UM repo
This should limit the changed files to only the files we allow to main.
This commit is contained in:
parent
49ff7c00d7
commit
58b9c06295
1 changed files with 4 additions and 3 deletions
7
.github/workflows/printer-linter-format.yml
vendored
7
.github/workflows/printer-linter-format.yml
vendored
|
@ -11,6 +11,7 @@ on:
|
|||
|
||||
jobs:
|
||||
printer-linter-format:
|
||||
if: ${{ github.repository_owner == 'Ultimaker' }}
|
||||
name: Printer linter auto format
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -35,9 +36,9 @@ jobs:
|
|||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||
|
||||
# - name: Format file
|
||||
# if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||
# run: python printer-linter/src/terminal.py --format ${{ env.GIT_DIFF_FILTERED }}
|
||||
- name: Format file
|
||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||
run: python printer-linter/src/terminal.py --format ${{ env.GIT_DIFF_FILTERED }}
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue