From 24cd7283e3cbf1f0aecd72501198d0b60c244bb1 Mon Sep 17 00:00:00 2001 From: Andrey Kashchikhin Date: Wed, 8 Nov 2023 17:28:08 +0000 Subject: [PATCH] make cache space showing optional (#20962) --- .github/actions/setup_python/action.yml | 6 +++++- .github/workflows/linux.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup_python/action.yml b/.github/actions/setup_python/action.yml index 5c26561cac3..0bbbf45522e 100644 --- a/.github/actions/setup_python/action.yml +++ b/.github/actions/setup_python/action.yml @@ -15,6 +15,10 @@ inputs: description: 'If the runner is self-hosted' required: false default: 'true' + show-cache-info: + description: 'If the action should show the share space occupied by cache' + required: false + default: 'false' runs: using: 'composite' steps: @@ -52,7 +56,7 @@ runs: echo "PIP_CACHE_DIR=${{ inputs.pip-cache-path }}/${PIP_VER}" >> $GITHUB_ENV echo "PIP_INSTALL_PATH=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')" >> $GITHUB_ENV - - if: ${{ inputs.should-setup-pip-paths == 'true' }} + - if: ${{ inputs.show-cache-info == 'true' }} name: Get pip cache info shell: bash run: | diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 082d1981d95..ec23f7aba5a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -110,6 +110,7 @@ jobs: pip-cache-path: ${{ env.PIP_CACHE_PATH }} should-setup-pip-paths: 'true' self-hosted-runner: 'true' + show-cache-info: 'true' - name: Install python dependencies run: |