mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
Fix not being added to path
This commit is contained in:
parent
9c14b74b45
commit
3f252a86a6
3 changed files with 80 additions and 81 deletions
14
dist/action.js
vendored
14
dist/action.js
vendored
|
@ -2,16 +2,16 @@ import { tmpdir } from "node:os";
|
|||
import * as action from "@actions/core";
|
||||
import setup from "./setup.js";
|
||||
if (!process.env.RUNNER_TEMP) {
|
||||
process.env.RUNNER_TEMP = tmpdir();
|
||||
process.env.RUNNER_TEMP = tmpdir();
|
||||
}
|
||||
setup({
|
||||
version: action.getInput("bun-version") || undefined,
|
||||
customUrl: action.getInput("bun-download-url") || undefined,
|
||||
version: action.getInput("bun-version") || undefined,
|
||||
customUrl: action.getInput("bun-download-url") || undefined,
|
||||
})
|
||||
.then(({ version, cacheHit }) => {
|
||||
.then(({ version, cacheHit }) => {
|
||||
action.setOutput("bun-version", version);
|
||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
||||
})
|
||||
.catch((error) => {
|
||||
})
|
||||
.catch((error) => {
|
||||
action.setFailed(error);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue