mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-20 21:48:22 +02:00
feat: add bun paths and url to output
Fixes https://github.com/oven-sh/setup-bun/issues/81
This commit is contained in:
parent
3458468e4c
commit
ac64dabe8a
3 changed files with 12 additions and 1 deletions
|
@ -30,6 +30,8 @@ export type Input = {
|
|||
export type Output = {
|
||||
version: string;
|
||||
revision: string;
|
||||
bunPath: string;
|
||||
url: string;
|
||||
cacheHit: boolean;
|
||||
};
|
||||
|
||||
|
@ -111,6 +113,8 @@ export default async (options: Input): Promise<Output> => {
|
|||
return {
|
||||
version,
|
||||
revision,
|
||||
bunPath,
|
||||
url,
|
||||
cacheHit,
|
||||
};
|
||||
};
|
||||
|
|
|
@ -17,9 +17,11 @@ runAction({
|
|||
scope: getInput("scope") || undefined,
|
||||
noCache: getBooleanInput("no-cache") || false,
|
||||
})
|
||||
.then(({ version, revision, cacheHit }) => {
|
||||
.then(({ version, revision, bunPath, url, cacheHit }) => {
|
||||
setOutput("bun-version", version);
|
||||
setOutput("bun-revision", revision);
|
||||
setOutput("bun-path", bunPath);
|
||||
setOutput("bun-download-url", url);
|
||||
setOutput("cache-hit", cacheHit);
|
||||
process.exit(0);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue