From e0af06433fd7db0fd7ff770eb46237f3f0a6f392 Mon Sep 17 00:00:00 2001 From: fantonangeli Date: Thu, 28 May 2026 10:47:13 +0200 Subject: [PATCH] Add input to disable pnpm cache Signed-off-by: fantonangeli --- .github/actions/setup-ci/action.yml | 8 +++++++- .github/workflows/ci_check_license_headers.yaml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-ci/action.yml b/.github/actions/setup-ci/action.yml index 298eaf4..0d75e24 100644 --- a/.github/actions/setup-ci/action.yml +++ b/.github/actions/setup-ci/action.yml @@ -17,6 +17,12 @@ name: "Setup CI" description: "Setup Node.js and pnpm for CI workflows" +inputs: + pnpm_cache: + description: "Enable pnpm cache. Disable if the workflow does not run pnpm install." + required: false + default: "true" + runs: using: "composite" steps: @@ -29,4 +35,4 @@ runs: uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 with: version: 10.31.0 - cache: true + cache: ${{ inputs.pnpm_cache == 'true' }} diff --git a/.github/workflows/ci_check_license_headers.yaml b/.github/workflows/ci_check_license_headers.yaml index 0f2fc3c..9427310 100644 --- a/.github/workflows/ci_check_license_headers.yaml +++ b/.github/workflows/ci_check_license_headers.yaml @@ -39,6 +39,8 @@ jobs: - name: Setup CI uses: ./.github/actions/setup-ci + with: + pnpm_cache: "false" - name: "Setup JDK 17" uses: actions/setup-java@v5