|
|
|
@ -4607,7 +4607,9 @@ exports.RefKey = exports.Events = exports.State = exports.Outputs = exports.Inpu
|
|
|
|
|
var Inputs;
|
|
|
|
|
(function (Inputs) {
|
|
|
|
|
Inputs["Key"] = "key";
|
|
|
|
|
Inputs["OnlyRestore"] = "only-restore";
|
|
|
|
|
Inputs["Path"] = "path";
|
|
|
|
|
Inputs["Reeval"] = "reeval";
|
|
|
|
|
Inputs["RestoreKeys"] = "restore-keys";
|
|
|
|
|
Inputs["UploadChunkSize"] = "upload-chunk-size";
|
|
|
|
|
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
|
|
|
@ -37317,8 +37319,6 @@ function createTar(archiveFolder, sourceDirectories, compressionMethod) {
|
|
|
|
|
...getCompressionProgram(),
|
|
|
|
|
'-cf',
|
|
|
|
|
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
|
|
|
|
'--exclude',
|
|
|
|
|
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
|
|
|
|
'-P',
|
|
|
|
|
'-C',
|
|
|
|
|
workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
|
|
|
@ -46770,6 +46770,8 @@ const utils = __importStar(__webpack_require__(443));
|
|
|
|
|
process.on("uncaughtException", e => utils.logWarning(e.message));
|
|
|
|
|
function run() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
const save = !core.getBooleanInput(constants_1.Inputs.OnlyRestore);
|
|
|
|
|
if (save) {
|
|
|
|
|
try {
|
|
|
|
|
if (!utils.isCacheFeatureAvailable()) {
|
|
|
|
|
return;
|
|
|
|
@ -46814,6 +46816,7 @@ function run() {
|
|
|
|
|
catch (error) {
|
|
|
|
|
utils.logWarning(error.message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
run();
|
|
|
|
|