mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Move check so we can see if we even need python/pip.
Otherwise those if checks placed in the last commit won't even do anything if there _is_ a change in the printer definitions.
This commit is contained in:
parent
04016373ae
commit
a1c01193da
2 changed files with 12 additions and 12 deletions
12
.github/workflows/printer-linter-format.yml
vendored
12
.github/workflows/printer-linter-format.yml
vendored
|
|
@ -18,6 +18,12 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: technote-space/get-diff-action@v6
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
resources/+(definitions|extruders)/*.def.json
|
||||||
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
- name: Setup Python and pip
|
- 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.
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
|
@ -26,12 +32,6 @@ jobs:
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
|
||||||
with:
|
|
||||||
PATTERNS: |
|
|
||||||
resources/+(definitions|extruders)/*.def.json
|
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
|
||||||
12
.github/workflows/printer-linter-pr-diagnose.yml
vendored
12
.github/workflows/printer-linter-pr-diagnose.yml
vendored
|
|
@ -16,6 +16,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
|
- uses: technote-space/get-diff-action@v6
|
||||||
|
with:
|
||||||
|
PATTERNS: |
|
||||||
|
resources/+(extruders|definitions)/*.def.json
|
||||||
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
- name: Setup Python and pip
|
- 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.
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
|
@ -24,12 +30,6 @@ jobs:
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
|
||||||
with:
|
|
||||||
PATTERNS: |
|
|
||||||
resources/+(extruders|definitions)/*.def.json
|
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue