|
|
@ -6605,9 +6605,14 @@ function run() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (utils.isExactKeyMatch(primaryKey, state)) {
|
|
|
|
if (utils.isExactKeyMatch(primaryKey, state)) {
|
|
|
|
|
|
|
|
if (core.getInput(constants_1.Inputs.Update) === "true") {
|
|
|
|
|
|
|
|
core.info(`Cache hit occurred on the primary key ${primaryKey}, but updates were enabled, so updating cache.`);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
|
|
|
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
const cachePaths = utils.getInputAsArray(constants_1.Inputs.Path, {
|
|
|
|
const cachePaths = utils.getInputAsArray(constants_1.Inputs.Path, {
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -6802,6 +6807,7 @@ var Inputs;
|
|
|
|
Inputs["Key"] = "key";
|
|
|
|
Inputs["Key"] = "key";
|
|
|
|
Inputs["Path"] = "path";
|
|
|
|
Inputs["Path"] = "path";
|
|
|
|
Inputs["RestoreKeys"] = "restore-keys";
|
|
|
|
Inputs["RestoreKeys"] = "restore-keys";
|
|
|
|
|
|
|
|
Inputs["Update"] = "update";
|
|
|
|
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
|
|
|
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
|
|
|
var Outputs;
|
|
|
|
var Outputs;
|
|
|
|
(function (Outputs) {
|
|
|
|
(function (Outputs) {
|
|
|
|