-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
137 changed files
with
216 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
name: printer-linter-format | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'resources/definitions/**' | ||
- 'resources/extruders/**' | ||
- 'resources/intent/**' | ||
- 'resources/quality/**' | ||
- 'resources/variants/**' | ||
push: | ||
paths: | ||
- 'resources/definitions/**' | ||
- 'resources/extruders/**' | ||
- 'resources/intent/**' | ||
- 'resources/quality/**' | ||
- 'resources/variants/**' | ||
|
||
jobs: | ||
printer-linter-format: | ||
name: Printer linter auto format | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup the build environment | ||
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@main | ||
|
||
- uses: greguintow/get-diff-action@v7 | ||
with: | ||
PATTERNS: | | ||
resources/+(definitions|extruders)/*.def.json | ||
resources/+(intent|quality|variants)/**/*.inst.cfg | ||
- 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 | ||
with: | ||
commit_message: "Applied printer-linter format" | ||
printer-linter-format: | ||
name: Printer linter auto format | ||
uses: ultimaker/cura-workflows/.github/workflows/lint-formatter.yml@main | ||
with: | ||
file_patterns: | | ||
resources/+(definitions|extruders)/*.def.json | ||
resources/+(intent|quality|variants)/**/*.inst.cfg | ||
command: python printer-linter/src/terminal.py --format | ||
commit_message: "Apply printer-linter format" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.