mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
Support AGENT_TOOLSDIRECTORY as in setup-python action
This commit is contained in:
parent
c2ac33f2c6
commit
c1b361d808
2 changed files with 13 additions and 0 deletions
|
@ -33,6 +33,14 @@ export async function run() {
|
|||
arch = os.arch();
|
||||
}
|
||||
|
||||
if (process.env.AGENT_TOOLSDIRECTORY?.trim()) {
|
||||
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
|
||||
}
|
||||
|
||||
core.debug(
|
||||
`Node is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`
|
||||
);
|
||||
|
||||
if (version) {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue