build syncing

This commit is contained in:
Hargun Kaur 2021-11-02 13:38:38 +00:00 committed by GitHub
parent ff9e2a3ca5
commit cc2914011d
3 changed files with 222 additions and 1396 deletions

View file

@ -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');