changed path of versionFilePath line 24 main.ts

This commit is contained in:
Hargun Kaur 2021-10-07 16:34:19 +00:00 committed by GitHub
parent fa3de08e5c
commit b8f2a97f38

View file

@ -21,7 +21,7 @@ export async function run() {
const versionFile = core.getInput('node-version-file');
if (!!versionFile) {
const versionFilePath = path.join(__dirname, '..', versionFile);
const versionFilePath = path.join(process.env.GITHUB_WORKSPACE!, versionFile);
version = installer.parseNodeVersionFile(
fs.readFileSync(versionFilePath, 'utf8')
);