mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 13:11:11 +00:00
build syncing
This commit is contained in:
parent
ff9e2a3ca5
commit
cc2914011d
3 changed files with 222 additions and 1396 deletions
11
src/main.ts
11
src/main.ts
|
@ -74,15 +74,12 @@ function isGhes(): boolean {
|
|||
}
|
||||
|
||||
function resolveVersionInput(): string {
|
||||
|
||||
if(!(core.getInput('node-version') || core.getInput('version')))
|
||||
{
|
||||
core.error('No specified file exists')
|
||||
if (!(core.getInput('node-version') || core.getInput('version'))) {
|
||||
core.error('No specified file exists');
|
||||
}
|
||||
|
||||
if(core.getInput('node-version') && core.getInput('version'))
|
||||
{
|
||||
core.warning('Both version and node-version-file are specified')
|
||||
if (core.getInput('node-version') && core.getInput('version')) {
|
||||
core.warning('Both version and node-version-file are specified');
|
||||
}
|
||||
|
||||
let version = core.getInput('node-version') || core.getInput('version');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue