From 04b79be048695d31a5f68053512a5d42136d43dd Mon Sep 17 00:00:00 2001 From: Daniel Quackenbush <25692880+danquack@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:32:47 -0400 Subject: [PATCH] change environment name to INPUT_PACKAGEJSON_DIR --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 00d5b46..5f87637 100644 --- a/index.js +++ b/index.js @@ -5,8 +5,8 @@ const { EOL } = require('os'); const path = require('path'); // Change working directory if user defined PACKAGEJSON_DIR -if (process.env.PACKAGEJSON_DIR) { - process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`; +if (process.env.INPUT_PACKAGEJSON_DIR) { + process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.INPUT_PACKAGEJSON_DIR}`; process.chdir(process.env.GITHUB_WORKSPACE); }