mirror of
https://github.com/actions/cache.git
synced 2025-04-21 11:36:45 +00:00
v1.0.1 release binaries
This commit is contained in:
parent
0f810ad45a
commit
86dff562ab
2 changed files with 7 additions and 4 deletions
7
dist/restore/index.js
vendored
7
dist/restore/index.js
vendored
|
@ -2972,7 +2972,10 @@ function run() {
|
|||
core.debug(`Cache Path: ${cachePath}`);
|
||||
const primaryKey = core.getInput(constants_1.Inputs.Key, { required: true });
|
||||
core.saveState(constants_1.State.CacheKey, primaryKey);
|
||||
const restoreKeys = core.getInput(constants_1.Inputs.RestoreKeys).split("\n");
|
||||
const restoreKeys = core
|
||||
.getInput(constants_1.Inputs.RestoreKeys)
|
||||
.split("\n")
|
||||
.filter(x => x !== "");
|
||||
const keys = [primaryKey, ...restoreKeys];
|
||||
core.debug("Resolved Keys:");
|
||||
core.debug(JSON.stringify(keys));
|
||||
|
@ -2994,7 +2997,7 @@ function run() {
|
|||
try {
|
||||
const cacheEntry = yield cacheHttpClient.getCacheEntry(keys);
|
||||
if (!cacheEntry) {
|
||||
core.info(`Cache not found for input keys: ${JSON.stringify(keys)}.`);
|
||||
core.info(`Cache not found for input keys: ${keys.join(", ")}.`);
|
||||
return;
|
||||
}
|
||||
let archivePath = path.join(yield utils.createTempDirectory(), "cache.tgz");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue