mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 08:28:23 +02:00
moved node version section in README to advanced usage
added link to README * migrated contents of version-file-workflow.yml to versions.yml * further refactored parseNodeVersionFile() & tests * removed type annotations in catch ()
This commit is contained in:
parent
e471f47826
commit
b1ed0c36e7
8 changed files with 113 additions and 17531 deletions
|
@ -80,11 +80,9 @@ export async function run() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function isGhes(): boolean {
|
||||
const ghUrl = new URL(
|
||||
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
|
||||
);
|
||||
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue