File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65287,11 +65287,12 @@ async function restore(ccacheVariant) {
65287
65287
const inputs = {
65288
65288
primaryKey: lib_core.getInput("key"),
65289
65289
// https://github.com/actions/cache/blob/73cb7e04054996a98d39095c0b7821a73fb5b3ea/src/utils/actionUtils.ts#L56
65290
- restoreKeys: lib_core.getInput("restore-keys").split("\n").map(s => s.trim()).filter(x => x !== "")
65290
+ restoreKeys: lib_core.getInput("restore-keys").split("\n").map(s => s.trim()).filter(x => x !== ""),
65291
+ appendTimestamp: lib_core.getInput("append-timestamp")
65291
65292
};
65292
65293
const keyPrefix = ccacheVariant + "-";
65293
- const primaryKey = inputs.primaryKey ? keyPrefix + inputs.primaryKey + "-" : keyPrefix;
65294
- const restoreKeys = inputs.restoreKeys.map(k => keyPrefix + k + "-");
65294
+ const primaryKey = inputs.primaryKey ? keyPrefix + ( inputs.appendTimestamp ? inputs. primaryKey + "-" : inputs.primaryKey) : keyPrefix;
65295
+ const restoreKeys = inputs.restoreKeys.map(k => keyPrefix + k + (inputs.appendTimestamp ? "-" : "") );
65295
65296
const paths = [cacheDir(ccacheVariant)];
65296
65297
lib_core.saveState("primaryKey", primaryKey);
65297
65298
const shouldRestore = lib_core.getBooleanInput("restore");
You can’t perform that action at this time.
0 commit comments