mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-29 06:35:53 +00:00
fix pretty printing and selftest
This commit is contained in:
parent
cb43a50800
commit
36af5cb1ae
5 changed files with 15 additions and 9 deletions
|
@ -30,6 +30,9 @@ async function run() {
|
|||
// TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
|
||||
await macOsWorkaround();
|
||||
|
||||
core.info(`# Cleaning Cache`);
|
||||
config.printInfo();
|
||||
|
||||
const registryName = await getRegistryName(config);
|
||||
|
||||
const allPackages = [];
|
||||
|
@ -64,7 +67,6 @@ async function run() {
|
|||
}
|
||||
|
||||
core.info(`# Saving cache`);
|
||||
config.printInfo();
|
||||
await cache.saveCache(config.cachePaths, config.cacheKey);
|
||||
} catch (e) {
|
||||
core.info(`[warning] ${(e as any).stack}`);
|
||||
|
|
|
@ -22,7 +22,8 @@ export async function getCmdOutput(
|
|||
...options,
|
||||
});
|
||||
} catch (e) {
|
||||
core.error(stderr);
|
||||
core.info(`[warning] Command failed: ${cmd} ${args.join(" ")}`);
|
||||
core.info(`[warning] ${stderr}`);
|
||||
throw e;
|
||||
}
|
||||
return stdout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue