formatting and error

This commit is contained in:
Shubham Tiwari authored and GitHub committed 2022-06-24 05:04:57 +00:00
1 parent c75dca6de7
commit 7c59aeb02d
4 files changed
+8 -42

No files matched your search

+2 -2
View File
@@ -34,13 +34,13 @@ async function run(): Promise<void> {
primaryKey,
restoreKeys
);
if (!cacheKey) {
core.info(
`Cache not found for input keys: ${[
primaryKey,
...restoreKeys
].join(", ")}`
].join(", ")}`
);
return;
+5 -5
View File
@@ -44,13 +44,13 @@ async function run(): Promise<void> {
required: true
});
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
});
if (cacheId == -1 ) {
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
});
if (cacheId == -1) {
return;
}
core.info(`Cache saved with key: ${primaryKey}`);
} catch (error: unknown) {
utils.logWarning((error as Error).message);