From b8f2a97f389e0c5945d44e34c8f9cf4e02a27353 Mon Sep 17 00:00:00 2001 From: Hargun Kaur <56452820+hkaur008@users.noreply.github.com> Date: Thu, 7 Oct 2021 16:34:19 +0000 Subject: [PATCH] changed path of versionFilePath line 24 main.ts --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 47be33df..7fe3ce68 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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') );