change environment name to INPUT_PACKAGEJSON_DIR
This commit is contained in:
parent
3efc8c1af2
commit
04b79be048
4
index.js
4
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue