3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-13 15:48:43 +00:00

add incremental flag to constructor

This commit is contained in:
Jonathan Kelley 2025-01-28 18:24:39 -08:00
parent 3c291936b0
commit 046710c449
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -62,6 +62,8 @@ export class CacheConfig {
let key = core.getInput("prefix-key") || "v0-rust";
self.incremental = core.getInput("incremental").toLowerCase() == "true";
const sharedKey = core.getInput("shared-key");
if (sharedKey) {
key += `-${sharedKey}`;