mirror of
https://github.com/actions/setup-node.git
synced 2026-02-17 03:44:43 +08:00
mirrorurl code
This commit is contained in:
@@ -33,6 +33,9 @@ export async function run() {
|
||||
arch = os.arch();
|
||||
}
|
||||
|
||||
const mirrorURL = core.getInput('mirrorURL').trim(); // .trim() to remove any accidental spaces
|
||||
|
||||
|
||||
if (version) {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
@@ -45,7 +48,8 @@ export async function run() {
|
||||
checkLatest,
|
||||
auth,
|
||||
stable,
|
||||
arch
|
||||
arch,
|
||||
mirrorURL
|
||||
};
|
||||
const nodeDistribution = getNodejsDistribution(nodejsInfo);
|
||||
await nodeDistribution.setupNodeJs();
|
||||
|
||||
Reference in New Issue
Block a user