mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
fix
This commit is contained in:
parent
5ea1ea8952
commit
59d4cef3d8
3 changed files with 4 additions and 3 deletions
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -107,9 +107,7 @@ export default async (options: Input): Promise<Output> => {
|
||||||
url,
|
url,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("Saving cache state: " + JSON.stringify(cacheState));
|
|
||||||
saveState("cache", JSON.stringify(cacheState));
|
saveState("cache", JSON.stringify(cacheState));
|
||||||
console.log("Saved cache state: " + JSON.stringify(cacheState));
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
version,
|
version,
|
||||||
|
|
|
@ -68,9 +68,12 @@ runAction({
|
||||||
noCache: getBooleanInput("no-cache") || false,
|
noCache: getBooleanInput("no-cache") || false,
|
||||||
})
|
})
|
||||||
.then(({ version, revision, cacheHit }) => {
|
.then(({ version, revision, cacheHit }) => {
|
||||||
|
console.log("Setting output");
|
||||||
setOutput("bun-version", version);
|
setOutput("bun-version", version);
|
||||||
setOutput("bun-revision", revision);
|
setOutput("bun-revision", revision);
|
||||||
setOutput("cache-hit", cacheHit);
|
setOutput("cache-hit", cacheHit);
|
||||||
|
console.log("Done");
|
||||||
|
process.exit(0);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setFailed(error);
|
setFailed(error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue