mirror of
https://github.com/actions/setup-node.git
synced 2025-12-18 22:37:08 +00:00
npm run test update
This commit is contained in:
parent
07b84a2324
commit
e5561a4d32
8 changed files with 105 additions and 579 deletions
10
src/main.ts
10
src/main.ts
|
|
@ -33,7 +33,12 @@ export async function run() {
|
|||
arch = os.arch();
|
||||
}
|
||||
|
||||
const mirrorURL = core.getInput('mirror-url').trim(); // .trim() to remove any accidental spaces
|
||||
const mirrorURL = core.getInput('mirror-url');
|
||||
if (mirrorURL === ' ' && mirrorURL === undefined) {
|
||||
core.error(
|
||||
'Mirror URL is emptry or undefined. The default mirror URL will be used.'
|
||||
);
|
||||
}
|
||||
|
||||
if (version) {
|
||||
const token = core.getInput('token');
|
||||
|
|
@ -116,3 +121,6 @@ function resolveVersionInput(): string {
|
|||
|
||||
return version;
|
||||
}
|
||||
export function setupNodeJs(mirrorURL: string) {
|
||||
throw new Error('Function not implemented.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue