|
|
@ -43417,6 +43417,26 @@ class CacheService {
|
|
|
|
Prefix: path.join(this.getCacheFolder(), keys[i])
|
|
|
|
Prefix: path.join(this.getCacheFolder(), keys[i])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.promise();
|
|
|
|
.promise();
|
|
|
|
|
|
|
|
let selected = undefined;
|
|
|
|
|
|
|
|
if (response.Contents) {
|
|
|
|
|
|
|
|
for (const object of response.Contents) {
|
|
|
|
|
|
|
|
if (selected === undefined) {
|
|
|
|
|
|
|
|
selected = object;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
if (object.LastModified &&
|
|
|
|
|
|
|
|
selected.LastModified) {
|
|
|
|
|
|
|
|
if (object.LastModified >
|
|
|
|
|
|
|
|
selected.LastModified) {
|
|
|
|
|
|
|
|
selected = object;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (selected && selected.Key) {
|
|
|
|
|
|
|
|
return path.parse(selected.Key).name;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
core.debug(JSON.stringify(response));
|
|
|
|
core.debug(JSON.stringify(response));
|
|
|
|
// eslint-disable-next-line no-empty
|
|
|
|
// eslint-disable-next-line no-empty
|
|
|
|
}
|
|
|
|
}
|
|
|
|