mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-05 19:45:52 +00:00
review comment
This commit is contained in:
parent
3d236ac88e
commit
d351e68b9a
1 changed files with 3 additions and 4 deletions
|
@ -47,11 +47,10 @@ async function run(): Promise<void> {
|
||||||
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
|
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
|
||||||
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
|
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
|
||||||
});
|
});
|
||||||
if (cacheId == -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (cacheId != -1) {
|
||||||
core.info(`Cache saved with key: ${primaryKey}`);
|
core.info(`Cache saved with key: ${primaryKey}`);
|
||||||
|
}
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
utils.logWarning((error as Error).message);
|
utils.logWarning((error as Error).message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue