From 5e55b88cf3867251343ec631caba8e4797d44987 Mon Sep 17 00:00:00 2001 From: Ryan-Brice <182604967+Ryan-Brice@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:09:12 +0800 Subject: [PATCH] feat: Rename input keys for job and hash suffixes to improve clarity and consistency --- dist/restore/index.js | 10 +++++----- dist/save/index.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 80610b4..6540f5e 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -85458,7 +85458,7 @@ class CacheConfig { key += `-${inputKey}`; } const job = process.env.GITHUB_JOB; - if ((job) && core.getInput("use-job-key").toLowerCase() == "true") { + if ((job) && core.getInput("add-job-id-key").toLowerCase() == "true") { key += `-${job}`; } } @@ -85495,8 +85495,8 @@ class CacheConfig { } } self.keyEnvs = keyEnvs; - // Add job hash suffix if 'add-job-hash' is true - if (core.getInput("add-job-hash").toLowerCase() == "true") { + // Add job hash suffix if 'add-rust-environment-hash-key' is true + if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") { key += `-${digest(hasher)}`; } self.restoreKey = key; @@ -85597,8 +85597,8 @@ class CacheConfig { } keyFiles.push(...parsedKeyFiles); self.keyFiles = sort_and_uniq(keyFiles); - // Add lock hash suffix if 'add-job-hash' is true - if (core.getInput("add-job-hash").toLowerCase() == "true") { + // Add lock hash suffix if 'add-rust-environment-hash-key' is true + if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") { let lockHash = digest(hasher); key += `-${lockHash}`; } diff --git a/dist/save/index.js b/dist/save/index.js index 2027f3b..7db3f6a 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -85458,7 +85458,7 @@ class CacheConfig { key += `-${inputKey}`; } const job = process.env.GITHUB_JOB; - if ((job) && core.getInput("use-job-key").toLowerCase() == "true") { + if ((job) && core.getInput("add-job-id-key").toLowerCase() == "true") { key += `-${job}`; } } @@ -85495,8 +85495,8 @@ class CacheConfig { } } self.keyEnvs = keyEnvs; - // Add job hash suffix if 'add-job-hash' is true - if (core.getInput("add-job-hash").toLowerCase() == "true") { + // Add job hash suffix if 'add-rust-environment-hash-key' is true + if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") { key += `-${digest(hasher)}`; } self.restoreKey = key; @@ -85597,8 +85597,8 @@ class CacheConfig { } keyFiles.push(...parsedKeyFiles); self.keyFiles = sort_and_uniq(keyFiles); - // Add lock hash suffix if 'add-job-hash' is true - if (core.getInput("add-job-hash").toLowerCase() == "true") { + // Add lock hash suffix if 'add-rust-environment-hash-key' is true + if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") { let lockHash = digest(hasher); key += `-${lockHash}`; }