diff --git a/.github/workflows/printer-linter-format.yml b/.github/workflows/printer-linter-format.yml index e5e1b5b1d6..7562a5055c 100644 --- a/.github/workflows/printer-linter-format.yml +++ b/.github/workflows/printer-linter-format.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v3 - 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@v4 with: python-version: 3.11.x diff --git a/.github/workflows/printer-linter-pr-diagnose.yml b/.github/workflows/printer-linter-pr-diagnose.yml index 0dac8ba7e7..0c55a93e2a 100644 --- a/.github/workflows/printer-linter-pr-diagnose.yml +++ b/.github/workflows/printer-linter-pr-diagnose.yml @@ -17,6 +17,7 @@ jobs: fetch-depth: 2 - 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@v4 with: python-version: 3.11.x