mirror of
https://github.com/denoland/setup-deno.git
synced 2026-08-23 00:00:31 +02:00
feat: add built-in caching via inputs (#89)
(cherry picked from commit fd6b0ad149)
This commit is contained in:
@@ -56,6 +56,11 @@ async function main() {
|
||||
core.setOutput("release-channel", version.kind);
|
||||
|
||||
core.info("Installation complete.");
|
||||
|
||||
if (core.getInput("cache") === "true") {
|
||||
const { restoreCache } = await import("./cache.ts");
|
||||
await restoreCache(core.getInput("cache-hash"));
|
||||
}
|
||||
} catch (err) {
|
||||
core.setFailed((err instanceof Error) ? err : String(err));
|
||||
process.exit();
|
||||
|
||||
Reference in New Issue
Block a user