Merge pull request #187 from danquack/patch-1

change environment name to INPUT_PACKAGEJSON_DIR
This commit is contained in:
Phil 2022-11-03 15:38:15 +01:00 committed by GitHub
commit e9bc214ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);