mirror of
https://github.com/actions/setup-node.git
synced 2025-04-23 20:10:48 +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');
|
const versionFile = core.getInput('node-version-file');
|
||||||
|
|
||||||
if (!!versionFile) {
|
if (!!versionFile) {
|
||||||
const versionFilePath = path.join(__dirname, '..', versionFile);
|
const versionFilePath = path.join(process.env.GITHUB_WORKSPACE!, versionFile);
|
||||||
version = installer.parseNodeVersionFile(
|
version = installer.parseNodeVersionFile(
|
||||||
fs.readFileSync(versionFilePath, 'utf8')
|
fs.readFileSync(versionFilePath, 'utf8')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue