mirror of
https://github.com/Swatinem/rust-cache
synced 2025-06-08 17:43:25 +00:00
make sure to invalidate cache
This commit is contained in:
parent
046710c449
commit
c9276fc739
1 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,7 @@ export class CacheConfig {
|
||||||
|
|
||||||
let key = core.getInput("prefix-key") || "v0-rust";
|
let key = core.getInput("prefix-key") || "v0-rust";
|
||||||
|
|
||||||
self.incremental = core.getInput("incremental").toLowerCase() == "true";
|
|
||||||
|
|
||||||
const sharedKey = core.getInput("shared-key");
|
const sharedKey = core.getInput("shared-key");
|
||||||
if (sharedKey) {
|
if (sharedKey) {
|
||||||
|
@ -124,6 +124,10 @@ export class CacheConfig {
|
||||||
|
|
||||||
self.restoreKey = key;
|
self.restoreKey = key;
|
||||||
|
|
||||||
|
// Make sure we consider incremental builds
|
||||||
|
self.incremental = core.getInput("incremental").toLowerCase() == "true";
|
||||||
|
hasher.update(`incremental=${self.incremental}`);
|
||||||
|
|
||||||
// Construct the lockfiles portion of the key:
|
// Construct the lockfiles portion of the key:
|
||||||
// This considers all the files found via globbing for various manifests
|
// This considers all the files found via globbing for various manifests
|
||||||
// and lockfiles.
|
// and lockfiles.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue