mirror of
https://github.com/actions/setup-node.git
synced 2025-04-21 19:18:43 +00:00
changed path of versionFilePath line 24 main.ts
This commit is contained in:
parent
fa3de08e5c
commit
b8f2a97f38
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue