mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-23 05:58:18 +00:00
feat: include a hash of deno.lock files in the cache key automatically (#98)
This commit is contained in:
4
dist/cache-ByPW8-iO.mjs
vendored
4
dist/cache-ByPW8-iO.mjs
vendored
@@ -1,4 +0,0 @@
|
||||
import "./semver-DmxAwBYV.mjs";
|
||||
import { restoreCache, saveCache } from "./cache-DzONlZ-I.mjs";
|
||||
|
||||
export { restoreCache };
|
||||
4
dist/cache-D7LLZXo3.mjs
vendored
Normal file
4
dist/cache-D7LLZXo3.mjs
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import "./semver-DmxAwBYV.mjs";
|
||||
import { restoreCache, saveCache } from "./cache-zjpbixka.mjs";
|
||||
|
||||
export { restoreCache };
|
||||
2721
dist/cache-DzONlZ-I.mjs → dist/cache-zjpbixka.mjs
vendored
2721
dist/cache-DzONlZ-I.mjs → dist/cache-zjpbixka.mjs
vendored
File diff suppressed because it is too large
Load Diff
7
dist/main.mjs
vendored
7
dist/main.mjs
vendored
@@ -20318,6 +20318,9 @@ function exit(message) {
|
||||
import_core.setFailed(message);
|
||||
process$1.exit();
|
||||
}
|
||||
function isCachingEnabled() {
|
||||
return import_core.getInput("cache") === "true" || import_core.getInput("cache-hash").length > 0;
|
||||
}
|
||||
async function main() {
|
||||
try {
|
||||
const denoVersionFile = import_core.getInput("deno-version-file");
|
||||
@@ -20331,8 +20334,8 @@ async function main() {
|
||||
import_core.setOutput("deno-version", version.version);
|
||||
import_core.setOutput("release-channel", version.kind);
|
||||
import_core.info("Installation complete.");
|
||||
if (import_core.getInput("cache") === "true") {
|
||||
const { restoreCache } = await import("./cache-ByPW8-iO.mjs");
|
||||
if (isCachingEnabled()) {
|
||||
const { restoreCache } = await import("./cache-D7LLZXo3.mjs");
|
||||
await restoreCache(import_core.getInput("cache-hash"));
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
2
dist/post.mjs
vendored
2
dist/post.mjs
vendored
@@ -1,5 +1,5 @@
|
||||
import { import_core } from "./semver-DmxAwBYV.mjs";
|
||||
import { saveCache } from "./cache-DzONlZ-I.mjs";
|
||||
import { saveCache } from "./cache-zjpbixka.mjs";
|
||||
import process from "node:process";
|
||||
|
||||
//#region src/post.ts
|
||||
|
||||
Reference in New Issue
Block a user