mirror of
https://github.com/Swatinem/rust-cache
synced 2025-11-05 06:59:13 +00:00
feat: Rename input keys for job and hash suffixes to improve clarity and consistency
This commit is contained in:
parent
70fec6c203
commit
5e55b88cf3
2 changed files with 10 additions and 10 deletions
10
dist/restore/index.js
vendored
10
dist/restore/index.js
vendored
|
|
@ -85458,7 +85458,7 @@ class CacheConfig {
|
||||||
key += `-${inputKey}`;
|
key += `-${inputKey}`;
|
||||||
}
|
}
|
||||||
const job = process.env.GITHUB_JOB;
|
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}`;
|
key += `-${job}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -85495,8 +85495,8 @@ class CacheConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.keyEnvs = keyEnvs;
|
self.keyEnvs = keyEnvs;
|
||||||
// Add job hash suffix if 'add-job-hash' is true
|
// Add job hash suffix if 'add-rust-environment-hash-key' is true
|
||||||
if (core.getInput("add-job-hash").toLowerCase() == "true") {
|
if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") {
|
||||||
key += `-${digest(hasher)}`;
|
key += `-${digest(hasher)}`;
|
||||||
}
|
}
|
||||||
self.restoreKey = key;
|
self.restoreKey = key;
|
||||||
|
|
@ -85597,8 +85597,8 @@ class CacheConfig {
|
||||||
}
|
}
|
||||||
keyFiles.push(...parsedKeyFiles);
|
keyFiles.push(...parsedKeyFiles);
|
||||||
self.keyFiles = sort_and_uniq(keyFiles);
|
self.keyFiles = sort_and_uniq(keyFiles);
|
||||||
// Add lock hash suffix if 'add-job-hash' is true
|
// Add lock hash suffix if 'add-rust-environment-hash-key' is true
|
||||||
if (core.getInput("add-job-hash").toLowerCase() == "true") {
|
if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") {
|
||||||
let lockHash = digest(hasher);
|
let lockHash = digest(hasher);
|
||||||
key += `-${lockHash}`;
|
key += `-${lockHash}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
dist/save/index.js
vendored
10
dist/save/index.js
vendored
|
|
@ -85458,7 +85458,7 @@ class CacheConfig {
|
||||||
key += `-${inputKey}`;
|
key += `-${inputKey}`;
|
||||||
}
|
}
|
||||||
const job = process.env.GITHUB_JOB;
|
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}`;
|
key += `-${job}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -85495,8 +85495,8 @@ class CacheConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.keyEnvs = keyEnvs;
|
self.keyEnvs = keyEnvs;
|
||||||
// Add job hash suffix if 'add-job-hash' is true
|
// Add job hash suffix if 'add-rust-environment-hash-key' is true
|
||||||
if (core.getInput("add-job-hash").toLowerCase() == "true") {
|
if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") {
|
||||||
key += `-${digest(hasher)}`;
|
key += `-${digest(hasher)}`;
|
||||||
}
|
}
|
||||||
self.restoreKey = key;
|
self.restoreKey = key;
|
||||||
|
|
@ -85597,8 +85597,8 @@ class CacheConfig {
|
||||||
}
|
}
|
||||||
keyFiles.push(...parsedKeyFiles);
|
keyFiles.push(...parsedKeyFiles);
|
||||||
self.keyFiles = sort_and_uniq(keyFiles);
|
self.keyFiles = sort_and_uniq(keyFiles);
|
||||||
// Add lock hash suffix if 'add-job-hash' is true
|
// Add lock hash suffix if 'add-rust-environment-hash-key' is true
|
||||||
if (core.getInput("add-job-hash").toLowerCase() == "true") {
|
if (core.getInput("add-rust-environment-hash-key").toLowerCase() == "true") {
|
||||||
let lockHash = digest(hasher);
|
let lockHash = digest(hasher);
|
||||||
key += `-${lockHash}`;
|
key += `-${lockHash}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue