Merge pull request #187 from danquack/patch-1
change environment name to INPUT_PACKAGEJSON_DIR
This commit is contained in:
commit
e9bc214ba5
3
index.js
3
index.js
|
@ -8,6 +8,9 @@ const path = require('path');
|
|||
if (process.env.PACKAGEJSON_DIR) {
|
||||
process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`;
|
||||
process.chdir(process.env.GITHUB_WORKSPACE);
|
||||
} else 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);
|
||||
}
|
||||
|
||||
console.log('process.env.GITHUB_WORKSPACE', process.env.GITHUB_WORKSPACE);
|
||||
|
|
Loading…
Reference in New Issue