From 56f074e6eef9ea904cd06fcf9ba2577c55893e78 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Mon, 17 Nov 2025 17:54:37 +0000 Subject: [PATCH] ci: Use env vars instead of input in cache-key (#2789) --- .github/actions/cache-key/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/cache-key/action.yml b/.github/actions/cache-key/action.yml index ca839451..54b45692 100644 --- a/.github/actions/cache-key/action.yml +++ b/.github/actions/cache-key/action.yml @@ -32,5 +32,10 @@ runs: - name: Set cache key without commit id: key_without_commit shell: bash + env: + RUNNER_OS: ${{ runner.os }} + BUILD_TYPE: ${{ inputs.build_type }} + CODE_COVERAGE: ${{ inputs.code_coverage == 'true' && '-code_coverage' || '' }} + CONAN_PROFILE: ${{ inputs.conan_profile }} run: | - echo "key=clio-ccache-${{ runner.os }}-${{ inputs.build_type }}${{ inputs.code_coverage == 'true' && '-code_coverage' || '' }}-${{ inputs.conan_profile }}-develop" >> "${GITHUB_OUTPUT}" + echo "key=clio-ccache-${RUNNER_OS}-${BUILD_TYPE}${CODE_COVERAGE}-${CONAN_PROFILE}-develop" >> "${GITHUB_OUTPUT}"