syncing with main

This commit is contained in:
Hargun Kaur 2021-10-26 15:39:16 +00:00 committed by GitHub
parent 36bb47b5a0
commit 34ece939a3
2 changed files with 18 additions and 16 deletions

View file

@ -82,14 +82,14 @@ function resolveVersionInput(): string {
const versionFileInput = core.getInput('node-version-file');
if (versionFileInput) {
const versionFilePath = path.join(
process.env.GITHUB_WORKSPACE!,
versionFileInput
process.env.GITHUB_WORKSPACE!,
versionFileInput
);
version = installer.parseNodeVersionFile(
fs.readFileSync(versionFilePath, 'utf8')
fs.readFileSync(versionFilePath, 'utf8')
);
core.info(`Resolved ${versionFileInput} as ${version}`);
}
return version;
}
}