mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 00:18:25 +02:00
mirror-url -implementation
This commit is contained in:
parent
802632921f
commit
1b0ef2d227
13 changed files with 1223 additions and 184 deletions
|
@ -33,6 +33,8 @@ export async function run() {
|
|||
arch = os.arch();
|
||||
}
|
||||
|
||||
const mirrorURL = core.getInput('mirror-url').trim(); // .trim() to remove any accidental spaces
|
||||
|
||||
if (version) {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
|
@ -45,7 +47,8 @@ export async function run() {
|
|||
checkLatest,
|
||||
auth,
|
||||
stable,
|
||||
arch
|
||||
arch,
|
||||
mirrorURL
|
||||
};
|
||||
const nodeDistribution = getNodejsDistribution(nodejsInfo);
|
||||
await nodeDistribution.setupNodeJs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue